2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
4 ACE_INLINE ACE_recursive_thread_mutex_t &
5 ACE_Recursive_Thread_Mutex::lock ()
10 ACE_INLINE ACE_thread_mutex_t &
11 ACE_Recursive_Thread_Mutex::get_nesting_mutex ()
13 #if defined (ACE_HAS_RECURSIVE_MUTEXES)
14 return static_cast<ACE_thread_mutex_t &> (lock_);
16 return lock_.nesting_mutex_;
17 #endif /* ACE_HAS_RECURSIVE_MUTEXES */
21 ACE_Recursive_Thread_Mutex::set_thread_id (ACE_thread_t t)
23 // ACE_TRACE ("ACE_Recursive_Thread_Mutex::set_thread_id");
24 #if defined (ACE_HAS_RECURSIVE_MUTEXES)
26 #else /* ! ACE_HAS_RECURSIVE_MUTEXES */
27 this->lock_.owner_id_ = t;
28 #endif /* ! ACE_HAS_RECURSIVE_MUTEXES */
32 ACE_Recursive_Thread_Mutex::acquire ()
34 return ACE_OS::recursive_mutex_lock (&this->lock_);
38 ACE_Recursive_Thread_Mutex::release ()
40 return ACE_OS::recursive_mutex_unlock (&this->lock_);
44 ACE_Recursive_Thread_Mutex::tryacquire ()
46 return ACE_OS::recursive_mutex_trylock (&this->lock_);
50 ACE_Recursive_Thread_Mutex::acquire (ACE_Time_Value &tv)
52 return ACE_OS::recursive_mutex_lock (&this->lock_, tv);
56 ACE_Recursive_Thread_Mutex::acquire (ACE_Time_Value *tv)
58 return ACE_OS::recursive_mutex_lock (&this->lock_, tv);
62 ACE_Recursive_Thread_Mutex::acquire_read ()
64 return this->acquire ();
68 ACE_Recursive_Thread_Mutex::acquire_write ()
70 return this->acquire ();
74 ACE_Recursive_Thread_Mutex::tryacquire_read ()
76 return this->tryacquire ();
80 ACE_Recursive_Thread_Mutex::tryacquire_write ()
82 return this->tryacquire ();
86 ACE_Recursive_Thread_Mutex::tryacquire_write_upgrade ()
91 ACE_END_VERSIONED_NAMESPACE_DECL