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

ACE_Null_Mutex Class Reference

Implement a do nothing <ACE_Mutex>, i.e., all the methods are no ops. More...

#include <Synch.h>

Inheritance diagram for ACE_Null_Mutex:

Inheritance graph
[legend]
List of all members.

Public Methods

 ACE_Null_Mutex (const ACE_TCHAR *=0)
 ~ACE_Null_Mutex (void)
int remove (void)
 Return 0. More...

int acquire (void)
 Return 0. More...

int acquire (ACE_Time_Value &timeout)
 Return -1 with <errno> == <ETIME>. More...

int acquire (ACE_Time_Value *timeout)
 Return -1 with <errno> == <ETIME>. More...

int tryacquire (void)
 Return 0. More...

int release (void)
 Return 0. More...

int acquire_write (void)
 Return 0. More...

int tryacquire_write (void)
 Return 0. More...

int tryacquire_write_upgrade (void)
 Return 0. More...

int acquire_read (void)
 Return 0. More...

int tryacquire_read (void)
 Return 0. More...

void dump (void) const
 Dump the state of an object. More...


Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks. More...

int lock_

Detailed Description

Implement a do nothing <ACE_Mutex>, i.e., all the methods are no ops.

Definition at line 639 of file Synch.h.


Constructor & Destructor Documentation

ACE_INLINE ACE_Null_Mutex::ACE_Null_Mutex const ACE_TCHAR   = 0
 

Definition at line 754 of file Synch.i.

References ACE_TCHAR.

00755   : lock_ (0)
00756 {
00757 }

ACE_INLINE ACE_Null_Mutex::~ACE_Null_Mutex void   
 

Definition at line 760 of file Synch.i.

00761 {
00762 }


Member Function Documentation

ACE_INLINE int ACE_Null_Mutex::acquire ACE_Time_Value   timeout
 

Return -1 with <errno> == <ETIME>.

Definition at line 784 of file Synch.i.

References ETIME.

00785 {
00786   errno = ETIME;
00787   return -1;
00788 }

ACE_INLINE int ACE_Null_Mutex::acquire ACE_Time_Value   timeout
 

Return -1 with <errno> == <ETIME>.

Definition at line 777 of file Synch.i.

References ETIME.

00778 {
00779   errno = ETIME;
00780   return -1;
00781 }

ACE_INLINE int ACE_Null_Mutex::acquire void   
 

Return 0.

Definition at line 771 of file Synch.i.

00772 {
00773   return 0;
00774 }

ACE_INLINE int ACE_Null_Mutex::acquire_read void   
 

Return 0.

Definition at line 821 of file Synch.i.

00822 {
00823   return 0;
00824 }

ACE_INLINE int ACE_Null_Mutex::acquire_write void   
 

Return 0.

Definition at line 803 of file Synch.i.

00804 {
00805   return 0;
00806 }

ACE_INLINE void ACE_Null_Mutex::dump void    const
 

Dump the state of an object.

Reimplemented in ACE_Noop_Token.

Definition at line 833 of file Synch.i.

00834 {
00835 }

ACE_INLINE int ACE_Null_Mutex::release void   
 

Return 0.

Definition at line 797 of file Synch.i.

00798 {
00799   return 0;
00800 }

ACE_INLINE int ACE_Null_Mutex::remove void   
 

Return 0.

Definition at line 765 of file Synch.i.

00766 {
00767   return 0;
00768 }

ACE_INLINE int ACE_Null_Mutex::tryacquire void   
 

Return 0.

Definition at line 791 of file Synch.i.

00792 {
00793   return 0;
00794 }

ACE_INLINE int ACE_Null_Mutex::tryacquire_read void   
 

Return 0.

Definition at line 827 of file Synch.i.

00828 {
00829   return 0;
00830 }

ACE_INLINE int ACE_Null_Mutex::tryacquire_write void   
 

Return 0.

Definition at line 809 of file Synch.i.

00810 {
00811   return 0;
00812 }

ACE_INLINE int ACE_Null_Mutex::tryacquire_write_upgrade void   
 

Return 0.

Definition at line 815 of file Synch.i.

00816 {
00817   return 0;
00818 }


Member Data Documentation

ACE_Null_Mutex::ACE_ALLOC_HOOK_DECLARE
 

Declare the dynamic allocation hooks.

Reimplemented in ACE_Noop_Token.

Definition at line 681 of file Synch.h.

int ACE_Null_Mutex::lock_
 

Definition at line 683 of file Synch.h.

Referenced by ACE_RW_Token::acquire, ACE_Mutex_Token::acquire, ACE_Token_Manager::get_token, ACE_Token_Invariant_Manager::mutex_acquired, ACE_Token_Invariant_Manager::mutex_releasing, ACE_Token_Invariant_Manager::reader_acquired, ACE_RW_Token::release, ACE_Mutex_Token::release, ACE_Token_Manager::release_token, ACE_RW_Token::renew, ACE_Mutex_Token::renew, ACE_Token_Invariant_Manager::rwlock_releasing, ACE_RW_Token::tryacquire, ACE_Mutex_Token::tryacquire, and ACE_Token_Invariant_Manager::writer_acquired.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:51:13 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002