Mark3 Realtime Kernel
readerwriter.h File Reference

Reader-Writer lock implementation. More...

#include "mark3cfg.h"
#include "blocking.h"
#include "mutex.h"

Go to the source code of this file.

Classes

class  Mark3::ReaderWriterLock
 The ReaderWriterLock class. This class implements an object that marshalls access to a resource based on the intended usage of the resource. A reader-writer lock permits multiple concurrent read access, or single-writer access to a resource. If the object holds a write lock, other writers, and all readers will block until the writer is finished. If the object holds reader locks, all writers will block until all readers are finished before the first writer can take ownership of the resource. This is based upon lower-level synchronization primatives, and is somewhat more heavyweight than primative synchronization types. More...
 

Namespaces

 Mark3
 

Detailed Description

Reader-Writer lock implementation.

Definition in file readerwriter.h.