Module: Threads Package: Synchronization
Base Class
disableCancellation() enableCancellation() |
isCancellationEnabled() operator=() |
RWSynchObject() setCancellation() |
testCancellation() |
#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.
void enableCancellation(RWCancellationState);
Turns on automatic cancellation detection.
void disableCancellation();
Turns off automatic cancellation detection.
bool isCancellationEnabled() const;
Determines whether automatic cancellation is enabled.
void setCancellation(RWCancellationState);
Turns on automatic cancellation detection.
RWSynchObject(RWCancellationState
state=RW_CANCELLATION_DISABLED);
Enforces that this class is used only as a base class.
RWSynchObject(const RWSynchObject& second);
Copy constructor.
void testCancellation();
If a cancellation method has been registered, invoke it, otherwise do nothing.
RWSynchObject& operator=(const RWSynchObject& second);
Assignment operator.
RWMutexLock, RWNullMutexLock, RWFIFOMutexLock, RWTRecursiveLock<Mutex>, RWReadersWriterLock, RWSemaphore, RWCondition, RWCriticalSection
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.