2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
4 ACE_INLINE const ACE_thread_mutex_t &
5 ACE_Thread_Mutex::lock () const
7 // ACE_TRACE ("ACE_Thread_Mutex::lock");
11 ACE_INLINE ACE_thread_mutex_t &
12 ACE_Thread_Mutex::lock ()
14 // ACE_TRACE ("ACE_Thread_Mutex::lock");
19 ACE_Thread_Mutex::acquire_read ()
21 // ACE_TRACE ("ACE_Thread_Mutex::acquire_read");
22 return ACE_OS::thread_mutex_lock (&this->lock_);
26 ACE_Thread_Mutex::acquire_write ()
28 // ACE_TRACE ("ACE_Thread_Mutex::acquire_write");
29 return ACE_OS::thread_mutex_lock (&this->lock_);
33 ACE_Thread_Mutex::tryacquire_read ()
35 // ACE_TRACE ("ACE_Thread_Mutex::tryacquire_read");
36 return ACE_OS::thread_mutex_trylock (&this->lock_);
40 ACE_Thread_Mutex::tryacquire_write ()
42 // ACE_TRACE ("ACE_Thread_Mutex::tryacquire_write");
43 return ACE_OS::thread_mutex_trylock (&this->lock_);
47 ACE_Thread_Mutex::tryacquire_write_upgrade ()
49 // ACE_TRACE ("ACE_Thread_Mutex::tryacquire_write_upgrade");
54 ACE_Thread_Mutex::acquire ()
56 // ACE_TRACE ("ACE_Thread_Mutex::acquire");
57 return ACE_OS::thread_mutex_lock (&this->lock_);
61 ACE_Thread_Mutex::acquire (ACE_Time_Value &tv)
63 // ACE_TRACE ("ACE_Thread_Mutex::acquire");
64 return ACE_OS::thread_mutex_lock (&this->lock_, tv);
68 ACE_Thread_Mutex::acquire (ACE_Time_Value *tv)
70 // ACE_TRACE ("ACE_Thread_Mutex::acquire");
71 return ACE_OS::thread_mutex_lock (&this->lock_, tv);
75 ACE_Thread_Mutex::tryacquire ()
77 // ACE_TRACE ("ACE_Thread_Mutex::tryacquire");
78 return ACE_OS::thread_mutex_trylock (&this->lock_);
82 ACE_Thread_Mutex::release ()
84 // ACE_TRACE ("ACE_Thread_Mutex::release");
85 return ACE_OS::thread_mutex_unlock (&this->lock_);
89 ACE_Thread_Mutex::remove ()
91 // ACE_TRACE ("ACE_Thread_Mutex::remove");
95 this->removed_ = true;
96 result = ACE_OS::thread_mutex_destroy (&this->lock_);
101 ACE_END_VERSIONED_NAMESPACE_DECL