Library of Assembled Shared Sources
lass::util::RWLock Class Reference

Lean and mean synchronisation object, without OS support. More...

#include <rw_lock.h>

Inheritance diagram for lass::util::RWLock:
Collaboration diagram for lass::util::RWLock:

Detailed Description

Lean and mean synchronisation object, without OS support.

See also
RWLocker
Author
Tom De Muer
Date
2006

This lock is built upon atomic operations that are programmed in assembly. It makes a difference between reading and writing. A maximum number of readers is allowed while only 1 writer is allowed. The writer will only enter if there are no readers are reading at the same moment. This RWLock is a blocking and spinning synchronization object. Priority is given over writers, as soon as a writer is trying to enter, only one subsequent reader will in worst case be able to enter.

Definition at line 73 of file rw_lock.h.


The documentation for this class was generated from the following files: