ACE_Null_Condition Class Reference

Implement a do nothing ACE_Condition variable wrapper, i.e., all methods are no ops. This class is necessary since some C++ compilers are *very* lame... More...

#include <Null_Condition.h>

Collaboration diagram for ACE_Null_Condition:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACE_Null_Condition (const ACE_Null_Mutex &m, const ACE_TCHAR *=0, void *=0)
 ~ACE_Null_Condition (void)
int remove (void)
 Returns 0.
int wait (const ACE_Time_Value *=0)
 Returns -1 with errno == ETIME.
int wait (ACE_Null_Mutex &, const ACE_Time_Value *=0)
 Returns -1 with errno == ETIME.
int signal (void)
 Returns 0.
int broadcast (void)
 Returns 0.
ACE_Null_Mutexmutex (void)
void dump (void) const
 Dump the state of an object.

Protected Attributes

ACE_Null_Mutexmutex_

Private Member Functions

void operator= (const ACE_Null_Condition &)
 ACE_Null_Condition (const ACE_Null_Condition &)

Detailed Description

Implement a do nothing ACE_Condition variable wrapper, i.e., all methods are no ops. This class is necessary since some C++ compilers are *very* lame...

Definition at line 40 of file Null_Condition.h.


Constructor & Destructor Documentation

ACE_Null_Condition::ACE_Null_Condition ( const ACE_Null_Mutex m,
const ACE_TCHAR = 0,
void *  = 0 
) [inline]

Definition at line 43 of file Null_Condition.h.

00046     : mutex_ ((ACE_Null_Mutex &) m) {}

ACE_Null_Condition::~ACE_Null_Condition ( void   )  [inline]

Definition at line 48 of file Null_Condition.h.

00048 {}

ACE_Null_Condition::ACE_Null_Condition ( const ACE_Null_Condition  )  [private]


Member Function Documentation

int ACE_Null_Condition::broadcast ( void   )  [inline]

Returns 0.

Definition at line 64 of file Null_Condition.h.

00064 {return 0;}

void ACE_Null_Condition::dump ( void   )  const [inline]

Dump the state of an object.

Definition at line 68 of file Null_Condition.h.

00068 {}

ACE_Null_Mutex& ACE_Null_Condition::mutex ( void   )  [inline]

Definition at line 65 of file Null_Condition.h.

References mutex_.

00065 {return this->mutex_;};

void ACE_Null_Condition::operator= ( const ACE_Null_Condition  )  [private]

int ACE_Null_Condition::remove ( void   )  [inline]

Returns 0.

Definition at line 51 of file Null_Condition.h.

00051 {return 0;}

int ACE_Null_Condition::signal ( void   )  [inline]

Returns 0.

Definition at line 61 of file Null_Condition.h.

00061 {return 0;}

int ACE_Null_Condition::wait ( ACE_Null_Mutex ,
const ACE_Time_Value = 0 
) [inline]

Returns -1 with errno == ETIME.

Definition at line 57 of file Null_Condition.h.

00058                                         {errno = ETIME; return -1;}

int ACE_Null_Condition::wait ( const ACE_Time_Value = 0  )  [inline]

Returns -1 with errno == ETIME.

Definition at line 54 of file Null_Condition.h.

00054 {errno = ETIME; return -1;}


Member Data Documentation

ACE_Null_Mutex& ACE_Null_Condition::mutex_ [protected]

Definition at line 74 of file Null_Condition.h.

Referenced by mutex().


The documentation for this class was generated from the following file:
Generated on Tue Feb 2 17:35:24 2010 for ACE by  doxygen 1.4.7