Module: Threads Package: Smart Pointer
RWTCounter<RWNullMutexLock> RWTCountingBody<Mutex>...... RWTMonitor<Mutex>
#include <rw/pointer/RWUnsafeCounter.h> typedef RWTCounter<RWNullMutexLock> RWUnsafeCounter;
A typedef that implements an unsafe counter that can be used for greater efficiency in reference counting in situations where multithread safety is not required. This typedef can be used as the counter template parameter for RWTCountingPointer.
RWTCountingPointer<int, RWUnsafeCounter> pointer = new int(10);
RWTCounter, RWSafeCounter, 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.