Definition at line 850 of file mutex.h.
OSB_LIB::Shared< T >::Shared | ( | ) | [inline] |
OSB_LIB::Shared< T >::Shared | ( | const T & | t | ) | [inline] |
OSB_LIB::Shared< T >::Shared | ( | const Shared< T > & | ) | [private] |
Prevent copying: not implemented.
T& OSB_LIB::Shared< T >::lock | ( | ) | [inline] |
Lock the resource.
Definition at line 860 of file mutex.h.
References OSB_LIB::Mutex::lock(), OSB_LIB::Shared< T >::mutex_, and OSB_LIB::Shared< T >::shared_.
Referenced by OSB_LIB::Shared< T * >::lock().
Shared<T>& OSB_LIB::Shared< T >::operator= | ( | const Shared< T > & | ) | [private] |
Prevent assignment: not implemented.
T& OSB_LIB::Shared< T >::trylock | ( | ) | throw (OsbException) [inline] |
Try to lock the resource.
OsbException | if the lock can not be aquired. |
Definition at line 872 of file mutex.h.
References OSB_LIB::Shared< T >::mutex_, OSB_LIB::Shared< T >::shared_, and OSB_LIB::Mutex::trylock().
void OSB_LIB::Shared< T >::unlock | ( | ) | [inline] |
Unlock the resource.
Definition at line 881 of file mutex.h.
References OSB_LIB::Shared< T >::mutex_, and OSB_LIB::Mutex::unlock().
Referenced by OSB_LIB::Shared< T * >::unlock().
Mutex OSB_LIB::Shared< T >::mutex_ [private] |
Mutex that protects the resource.
Definition at line 893 of file mutex.h.
Referenced by OSB_LIB::Shared< T >::lock(), OSB_LIB::Shared< T >::trylock(), and OSB_LIB::Shared< T >::unlock().
T OSB_LIB::Shared< T >::shared_ [private] |
The protected, shared resource.
Definition at line 895 of file mutex.h.
Referenced by OSB_LIB::Shared< T >::lock(), and OSB_LIB::Shared< T >::trylock().