KallistiOS  ##version##
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Data Fields
rw_semaphore Struct Reference

Reader/writer semaphore structure. More...

#include <kos/rwsem.h>

Data Fields

int initialized
 Are we initialized? More...
 
int read_count
 The number of readers that are currently holding the lock. More...
 
kthread_twrite_lock
 The thread holding the write lock. More...
 
kthread_treader_waiting
 Space for one reader who's trying to upgrade to a writer. More...
 

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

int rw_semaphore::initialized

Are we initialized?

int rw_semaphore::read_count

The number of readers that are currently holding the lock.

kthread_t* rw_semaphore::reader_waiting

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

kthread_t* rw_semaphore::write_lock

The thread holding the write lock.


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