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

RW_Process_Mutex.inl

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 // $Id: RW_Process_Mutex.inl,v 1.1.1.1 2001/12/04 14:33:07 chad Exp $
00003 
00004 // Explicitly destroy the mutex.
00005 ACE_INLINE int
00006 ACE_RW_Process_Mutex::remove (void)
00007 {
00008   return this->lock_.remove ();
00009 }
00010 
00011 // Acquire lock ownership (wait on priority queue if necessary).
00012 ACE_INLINE int
00013 ACE_RW_Process_Mutex::acquire (void)
00014 {
00015   return this->lock_.acquire ();
00016 }
00017 
00018 // Conditionally acquire lock (i.e., don't wait on queue).
00019 ACE_INLINE int
00020 ACE_RW_Process_Mutex::tryacquire (void)
00021 {
00022   return this->lock_.tryacquire ();
00023 }
00024 
00025 // Release lock and unblock a thread at head of priority queue.
00026 ACE_INLINE int
00027 ACE_RW_Process_Mutex::release (void)
00028 {
00029   return this->lock_.release ();
00030 }
00031 
00032 // Acquire lock ownership (wait on priority queue if necessary).
00033 ACE_INLINE int
00034 ACE_RW_Process_Mutex::acquire_read (void)
00035 {
00036   return this->lock_.acquire_read ();
00037 }
00038 
00039 // Acquire lock ownership (wait on priority queue if necessary).
00040 ACE_INLINE int
00041 ACE_RW_Process_Mutex::acquire_write (void)
00042 {
00043   return this->lock_.acquire_write ();
00044 }
00045 
00046 // Conditionally acquire a lock (i.e., won't block).
00047 ACE_INLINE int
00048 ACE_RW_Process_Mutex::tryacquire_read (void)
00049 {
00050   return this->lock_.tryacquire_read ();
00051 }
00052 
00053 // Conditionally acquire a lock (i.e., won't block).
00054 ACE_INLINE int
00055 ACE_RW_Process_Mutex::tryacquire_write (void)
00056 {
00057   return this->lock_.tryacquire_write ();
00058 }
00059 
00060 // Conditionally upgrade a lock (i.e., won't block).
00061 ACE_INLINE int
00062 ACE_RW_Process_Mutex::tryacquire_write_upgrade (void)
00063 {
00064   return this->lock_.tryacquire_write_upgrade ();
00065 }
00066 
00067 ACE_INLINE const ACE_File_Lock &
00068 ACE_RW_Process_Mutex::lock (void) const
00069 {
00070 // ACE_TRACE ("ACE_RW_Process_Mutex::lock");
00071   return this->lock_;
00072 }

Generated on Mon Jun 16 11:21:06 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002