#include <RW_Thread_Mutex.h>
Inheritance diagram for ACE_RW_Thread_Mutex:
Public Member Functions | |
ACE_RW_Thread_Mutex (const ACE_TCHAR *name=0, void *arg=0) | |
~ACE_RW_Thread_Mutex (void) | |
Default dtor. | |
int | tryacquire_write_upgrade (void) |
void | dump (void) const |
Dump the state of an object. | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. |
Definition at line 39 of file RW_Thread_Mutex.h.
|
Definition at line 27 of file RW_Thread_Mutex.cpp. References ACE_TCHAR.
00029 : ACE_RW_Mutex (USYNC_THREAD, name, arg) 00030 { 00031 // ACE_TRACE ("ACE_RW_Thread_Mutex::ACE_RW_Thread_Mutex"); 00032 } |
|
Default dtor.
Definition at line 15 of file RW_Thread_Mutex.inl.
00016 { 00017 } |
|
Dump the state of an object.
Reimplemented from ACE_RW_Mutex. Definition at line 35 of file RW_Thread_Mutex.cpp. References ACE_RW_Mutex::dump().
00036 { 00037 #if defined (ACE_HAS_DUMP) 00038 // ACE_TRACE ("ACE_RW_Thread_Mutex::dump"); 00039 ACE_RW_Mutex::dump (); 00040 #endif /* ACE_HAS_DUMP */ 00041 } |
|
Conditionally upgrade a read lock to a write lock. This only works if there are no other readers present, in which case the method returns 0. Otherwise, the method returns -1 and sets to . Note that the caller of this method *must* already possess this lock as a read lock (but this condition is not checked by the current implementation). Reimplemented from ACE_RW_Mutex. Definition at line 8 of file RW_Thread_Mutex.inl. References ACE_OS::rw_trywrlock_upgrade().
00009 { 00010 // ACE_TRACE ("ACE_RW_Thread_Mutex::tryacquire_write_upgrade"); 00011 return ACE_OS::rw_trywrlock_upgrade (&this->lock_); 00012 } |
|
Declare the dynamic allocation hooks.
Reimplemented from ACE_RW_Mutex. Definition at line 62 of file RW_Thread_Mutex.h. |