NAME

ACE_Process_Semaphore - Wrapper for Dijkstra style general semaphores that work across processes.

SYNOPSIS

#include <ace/Synch.h>

class ACE_Process_Semaphore { public: ACE_Process_Semaphore ( u_int count = 1, LPCTSTR name = 0, void * = 0, int max = 0x7FFFFFFF ); ~ACE_Process_Semaphore (void); int remove (void); int acquire (void); int tryacquire (void); int release (void); int acquire_read (void); int acquire_write (void); int tryacquire_read (void); int tryacquire_write (void); const ACE_sema_t &lock (void) const; void dump (void) const; ACE_ALLOC_HOOK_DECLARE; protected: ACE_Semaphore lock_; ACE_SV_Semaphore_Complex lock_; };

DESCRIPTION

Wrappers for various synchronization routines.

PUBLIC MEMBERS

ACE_Process_Semaphore (
    u_int count = 1,
    LPCTSTR name = 0,
    void * = 0,
    int max = 0x7FFFFFFF
    );

~ACE_Process_Semaphore (void);

int remove (void);

int acquire (void);

int tryacquire (void);

int release (void);

int acquire_read (void);

int acquire_write (void);

int tryacquire_read (void);

int tryacquire_write (void);

const ACE_sema_t &lock (void) const;

void dump (void) const;

ACE_ALLOC_HOOK_DECLARE;

PROTECTED MEMBERS

ACE_Semaphore lock_;

ACE_SV_Semaphore_Complex lock_;

AUTHOR

Doug Schmidt

LIBRARY

ace