ACE_recursive_thread_mutex_t Class Reference

Implement a thin C++ wrapper that allows nested acquisition and release of a mutex that occurs in the same thread. More...

#include <OS_NS_Thread.h>

List of all members.

Public Attributes

ACE_thread_mutex_t nesting_mutex_
 Guards the state of the nesting level and thread id.

ACE_cond_t lock_available_
int nesting_level_
 Current nesting level of the recursion.

ACE_thread_t owner_id_
 Current owner of the lock.


Detailed Description

Implement a thin C++ wrapper that allows nested acquisition and release of a mutex that occurs in the same thread.

This implementation is based on an algorithm sketched by Dave Butenhof <butenhof@zko.dec.com>. Naturally, I take the credit for any mistakes ;-)

Definition at line 526 of file OS_NS_Thread.h.


Member Data Documentation

ACE_cond_t ACE_recursive_thread_mutex_t::lock_available_
 

This condition variable suspends other waiting threads until the mutex is available.

Definition at line 534 of file OS_NS_Thread.h.

Referenced by ACE_OS::recursive_mutex_cond_relock(), ACE_OS::recursive_mutex_cond_unlock(), ACE_OS::recursive_mutex_destroy(), ACE_OS::recursive_mutex_init(), ACE_OS::recursive_mutex_lock(), and ACE_OS::recursive_mutex_unlock().

int ACE_recursive_thread_mutex_t::nesting_level_
 

Current nesting level of the recursion.

Definition at line 537 of file OS_NS_Thread.h.

Referenced by ACE_Recursive_Thread_Mutex::get_nesting_level(), ACE_OS::recursive_mutex_cond_relock(), ACE_OS::recursive_mutex_cond_unlock(), ACE_OS::recursive_mutex_init(), ACE_OS::recursive_mutex_lock(), ACE_OS::recursive_mutex_trylock(), and ACE_OS::recursive_mutex_unlock().

ACE_thread_mutex_t ACE_recursive_thread_mutex_t::nesting_mutex_
 

Guards the state of the nesting level and thread id.

Definition at line 530 of file OS_NS_Thread.h.

Referenced by ACE_Recursive_Thread_Mutex::get_nesting_mutex(), ACE_OS::recursive_mutex_cond_relock(), ACE_OS::recursive_mutex_cond_unlock(), ACE_OS::recursive_mutex_destroy(), ACE_OS::recursive_mutex_init(), ACE_OS::recursive_mutex_lock(), ACE_OS::recursive_mutex_trylock(), and ACE_OS::recursive_mutex_unlock().

ACE_thread_t ACE_recursive_thread_mutex_t::owner_id_
 

Current owner of the lock.

Definition at line 540 of file OS_NS_Thread.h.

Referenced by ACE_Recursive_Thread_Mutex::get_thread_id(), ACE_OS::recursive_mutex_cond_relock(), ACE_OS::recursive_mutex_cond_unlock(), ACE_OS::recursive_mutex_init(), ACE_OS::recursive_mutex_lock(), ACE_OS::recursive_mutex_trylock(), ACE_OS::recursive_mutex_unlock(), and ACE_Recursive_Thread_Mutex::set_thread_id().


The documentation for this class was generated from the following file:
Generated on Thu Nov 9 11:27:50 2006 for ACE by doxygen 1.3.6