
The template allows to write guard a pointer.
Definition at line 660 of file mutex.h.
| OSB_LIB::WriteGuard< T * >::WriteGuard | ( | T * | ptr = 0, |
|
| bool | locked = true, |
|||
| RwMutex * | pMutex = 0 | |||
| ) | [inline] |
Constructor for the issuer of the guard.
| ptr | Locked pointer. | |
| locked | Flag if the caller of the function owns the appropriate lock when the constructor is called (true is yes, false if no). | |
| pMutex | Mutex protecting the pointer. |
| OSB_LIB::WriteGuard< T * >::WriteGuard | ( | int | stat | ) | [inline, explicit] |
Constructor to set the status.
| stat | Status of the guard. |
This constructor is typically used by the issuer of the guard when the locking of the mutex failed: see ReadGuard<T*> for a coding example.
| OSB_LIB::WriteGuard< T * >::WriteGuard | ( | WriteGuard< T * > & | rhs | ) | [inline] |
| OSB_LIB::WriteGuard< T * >::WriteGuard | ( | WriteGuard< S * > | rhs | ) | [inline] |
| OSB_LIB::WriteGuard< T * >::WriteGuard | ( | WriteGuardRef | r | ) | [inline] |
| T* OSB_LIB::WriteGuard< T * >::get | ( | ) | [inline] |
| bool OSB_LIB::WriteGuard< T * >::locked | ( | ) | const [inline] |
| OSB_LIB::WriteGuard< T * >::operator WriteGuardRef | ( | ) | [inline] |
| WriteGuard& OSB_LIB::WriteGuard< T * >::operator= | ( | WriteGuard< S * > | rhs | ) | [inline] |
| WriteGuard& OSB_LIB::WriteGuard< T * >::operator= | ( | WriteGuard< T * > | rhs | ) | [inline] |
| bool OSB_LIB::WriteGuard< T * >::release | ( | ) | [inline] |
| void OSB_LIB::WriteGuard< T * >::unlock | ( | ) | [inline] |
friend class WriteGuard [friend] |
T* OSB_LIB::WriteGuard< T * >::ptr_ [private] |
| int OSB_LIB::WriteGuard< T * >::status_ |
1.4.7