ACE_Null_Semaphore(3)

ACE_Null_Semaphore3

Implement a do nothing ace_semaphore, i.e., all the methods are no ops.

Usage

#include <ace/Synch.h>
class ACE_Null_Semaphore
{
  public:
    ACE_Null_Semaphore (
        u_int count = 1,
        int type = USYNC_THREAD,
        LPCTSTR name = 0,
        void * = 0,
        int max = 0x7fffffff
        );
    ~ACE_Null_Semaphore (void);
    int remove (void);
    int acquire (ACE_Time_Value &);
    int acquire (void);
    int tryacquire (void);
    int release (void);
    int release (size_t);
    int acquire_write (void);
    int tryacquire_write (void);
    int acquire_read (void);
    int tryacquire_read (void);
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
};

Overview

Wrappers for various synchronization routines.

Public members

ACE_Null_Semaphore (
    u_int count = 1,
    int type = USYNC_THREAD,
    LPCTSTR name = 0,
    void * = 0,
    int max = 0x7fffffff
    );
~ACE_Null_Semaphore (void);
int remove (void);
int acquire (ACE_Time_Value &);
int acquire (void);
int tryacquire (void);
int release (void);
int release (size_t);
int acquire_write (void);
int tryacquire_write (void);
int acquire_read (void);
int tryacquire_read (void);
void dump (void) const;

Dump the state of an object.

ACE_ALLOC_HOOK_DECLARE;

Declare the dynamic allocation hooks.

Library

ace

Author

Doug Schmidt

From libace-doc 5.0.7-4 in Debian 2.2 (Potato). Parsed by carta from the page's man source.