Base Class
#include <rw/sync/RWSynchObject.h>
RWSynchObject is the base class for synchronization classes, RWMutexLock, RWFIFOMutexLock, RWTRecursiveLock<Mutex>, RWSemaphore, RWCondition, RWReadersWriterLock, and RWCriticalSection. The class contains methods that support automatic cancellation detection for runnables containing a thread that is accessing the acquire or wait members of these derived classes.
enum RWCancellationState{ RW_CANCELLATION_DISABLED, RW_CANCELLATION_ENABLED)};
Enumerated constants used to enable and disable automatic cancellation detection.
void enableCancellation(void);
Turns on automatic cancellation detection.
void disableCancellation(void);
Turns off automatic cancellation detection.
RWBoolean isCancellationEnabled(void) const;
Determines whether automatic cancellation is enabled.
void setCancellation(void);
Turns on automatic cancellation detection.
RWSynchObject(RWCancellationState
state=RW_CANCELLATION_DISABLED);
Enforces that this class is used only as a base class.
RWMutexLock, RWNullMutexLock, RWFIFOMutexLock, RWTRecursiveLock<Mutex>, RWReadersWriterLock, RWSemaphore, RWCondition, RWCriticalSection
©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.