Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / RW_Process_Mutex.inl
blob22720738c78c4ed0648126e5ab7956e1d9e825d6
1 // -*- C++ -*-
2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
4 // Explicitly destroy the mutex.
5 ACE_INLINE int
6 ACE_RW_Process_Mutex::remove ()
8   return this->lock_.remove ();
11 // Acquire lock ownership (wait on priority queue if necessary).
12 ACE_INLINE int
13 ACE_RW_Process_Mutex::acquire ()
15   return this->lock_.acquire ();
18 // Conditionally acquire lock (i.e., don't wait on queue).
19 ACE_INLINE int
20 ACE_RW_Process_Mutex::tryacquire ()
22   return this->lock_.tryacquire ();
25 // Release lock and unblock a thread at head of priority queue.
26 ACE_INLINE int
27 ACE_RW_Process_Mutex::release ()
29   return this->lock_.release ();
32 // Acquire lock ownership (wait on priority queue if necessary).
33 ACE_INLINE int
34 ACE_RW_Process_Mutex::acquire_read ()
36   return this->lock_.acquire_read ();
39 // Acquire lock ownership (wait on priority queue if necessary).
40 ACE_INLINE int
41 ACE_RW_Process_Mutex::acquire_write ()
43   return this->lock_.acquire_write ();
46 // Conditionally acquire a lock (i.e., won't block).
47 ACE_INLINE int
48 ACE_RW_Process_Mutex::tryacquire_read ()
50   return this->lock_.tryacquire_read ();
53 // Conditionally acquire a lock (i.e., won't block).
54 ACE_INLINE int
55 ACE_RW_Process_Mutex::tryacquire_write ()
57   return this->lock_.tryacquire_write ();
60 // Conditionally upgrade a lock (i.e., won't block).
61 ACE_INLINE int
62 ACE_RW_Process_Mutex::tryacquire_write_upgrade ()
64   return this->lock_.tryacquire_write_upgrade ();
67 ACE_INLINE const ACE_File_Lock &
68 ACE_RW_Process_Mutex::lock () const
70 // ACE_TRACE ("ACE_RW_Process_Mutex::lock");
71   return this->lock_;
74 ACE_END_VERSIONED_NAMESPACE_DECL