Module: Threads Package: Smart Pointer
RWTCounter<RWMutexLock> RWTCountingBody<Mutex> ...... RWTMonitor<Mutex>
#include <rw/pointer/RWSafeCounter.h>
typedef RWTCounter<RWMutexLock> RWSafeCounter;
The typedef RWSafeCounter implements the multithread-safe reference counter, which can be used as the counter template parameter for RWTCountingPointer.
RWTCountingPointer<int, RWSafeCounter> pointer = new int(10);
RWTCounter, RWUnsafeCounter, RWTCountingPointer
© 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.