Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_RW_Thread_Mutex Class Reference

Wrapper for readers/writer locks that exist within a process. More...

#include <Synch.h>

Inheritance diagram for ACE_RW_Thread_Mutex:

Inheritance graph
Collaboration diagram for ACE_RW_Thread_Mutex:

Collaboration graph
List of all members.

Public Methods

 ACE_RW_Thread_Mutex (const ACE_TCHAR *name=0, void *arg=0)
 ~ACE_RW_Thread_Mutex (void)
 Default dtor. More...

int tryacquire_write_upgrade (void)
void dump (void) const
 Dump the state of an object. More...

Public Attributes

 Declare the dynamic allocation hooks. More...

Detailed Description

Wrapper for readers/writer locks that exist within a process.

Definition at line 1464 of file Synch.h.

Constructor & Destructor Documentation

ACE_RW_Thread_Mutex::ACE_RW_Thread_Mutex const ACE_TCHAR   name = 0,
void *    arg = 0

Definition at line 878 of file Synch.cpp.

References ACE_TCHAR.

00880   : ACE_RW_Mutex (USYNC_THREAD, name, arg)
00881 {
00882 // ACE_TRACE ("ACE_RW_Thread_Mutex::ACE_RW_Thread_Mutex");
00883 }

ACE_RW_Thread_Mutex::~ACE_RW_Thread_Mutex void   

Default dtor.

Member Function Documentation

void ACE_RW_Thread_Mutex::dump void    const

Dump the state of an object.

Reimplemented from ACE_RW_Mutex.

Definition at line 886 of file Synch.cpp.

References ACE_RW_Mutex::dump.

00887 {
00888 // ACE_TRACE ("ACE_RW_Thread_Mutex::dump");
00889   ACE_RW_Mutex::dump ();
00890 }

int ACE_RW_Thread_Mutex::tryacquire_write_upgrade void   

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 <errno> to <EBUSY>. 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.

Member Data Documentation


Declare the dynamic allocation hooks.

Reimplemented from ACE_RW_Mutex.

Definition at line 1487 of file Synch.h.

The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:55:28 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002