KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
rw_semaphore_t Struct Reference

Reader/writer semaphore structure. More...

#include <kos/rwsem.h>

Data Fields

int dynamic
 Was this structure created with rwsem_create()?
 
int read_count
 The number of readers that are currently holding the lock.
 
kthread_twrite_lock
 The thread holding the write lock.
 
kthread_treader_waiting
 Space for one reader who's trying to upgrade to a writer.
 

Detailed Description

Reader/writer semaphore structure.

All members of this structure should be considered to be private, it is not safe to change anything in here yourself.

Field Documentation

◆ dynamic

int rw_semaphore_t::dynamic

Was this structure created with rwsem_create()?

◆ read_count

int rw_semaphore_t::read_count

The number of readers that are currently holding the lock.

◆ reader_waiting

kthread_t* rw_semaphore_t::reader_waiting

Space for one reader who's trying to upgrade to a writer.

◆ write_lock

kthread_t* rw_semaphore_t::write_lock

The thread holding the write lock.


The documentation for this struct was generated from the following file: