NAME

ACE_sema_t - This is used to implement semaphores for platforms that support POSIX pthreads, but do *not* support POSIX semaphores, i.e., it's a different type than the POSIX sem_t.

SYNOPSIS

#include <ace/OS.h>

class ACE_sema_t { public: friend class ACE_OS; ACE_thread_mutex_t lock_; ACE_event_t count_nonzero_; u_int count_; protected: ACE_mutex_t lock_; ACE_cond_t count_nonzero_; u_long count_; u_long waiters_; };

PUBLIC MEMBERS

friend class ACE_OS;

ACE_thread_mutex_t lock_;

ACE_event_t count_nonzero_;

u_int count_;

PROTECTED MEMBERS

ACE_mutex_t lock_;

ACE_cond_t count_nonzero_;

u_long count_;

u_long waiters_;

AUTHOR

Doug Schmidt schmidt@cs.wustl.edu, Jesper S. M|ller stophph@diku.dk, and a cast of thousands...

The ACE_Sched_Priority type should be used for platform-

independent thread and process priorities, by convention. int should be used for OS-specific priorities.

typedef for the _stat data structure

Giving unique ACE scoped names for some important

RTSignal-Related constants. Becuase sometimes, different platforms use different names for these constants.

LIBRARY

ace