MITHREAD::READWRITESYNC Class Reference

Read/Writer lock class that implements the read/write lock paradigm. More...

#include <mi32/readwritelock.h>

List of all members.

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 ()

Detailed Description

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


Constructor & Destructor Documentation

MITHREAD::READWRITESYNC::READWRITESYNC ( bool  bSupportRecursion = false  ) 

Reader/Writer Lock ctor.

Parameters:
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.


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

Generated on Sun Oct 7 21:36:39 2012 for TNTsdk 2012 by  doxygen 1.6.1