Read/Writer lock class that implements the read/write lock paradigm. More...
#include <mi32/readwritelock.h>
Classes | |
| class | READLOCK |
| Read Lock class to obtain and hold a read lock on the READWRITESYNC object until dtor is called Multiple threads can obtain read locks at the same time. More... | |
| class | WRITELOCK |
| Write Lock class to obtain and hold a write lock on the READWRITESYNC object until dtor is called Only one thread can obtain a write lock at a time. More... | |
Public Member Functions | |
| READWRITESYNC (bool bSupportRecursion=false) | |
| ~READWRITESYNC () | |
Read/Writer lock class that implements the read/write lock paradigm.
A thread can use the nested classes READLOCK and WRITELOCK to obtain the lock held by READWRITESYNC
| MITHREAD::READWRITESYNC::READWRITESYNC | ( | bool | bSupportRecursion = false |
) |
Reader/Writer Lock ctor.
| bSupportRecursion | If true, allow threads to obtain this lock while it already has this lock Set to 'true' for try locking semantics to work correctly It is far more efficient to not use recursion support |
| MITHREAD::READWRITESYNC::~READWRITESYNC | ( | ) |
Reader/Writer Lock dtor.
1.6.1