Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWTCountingBody<Mutex>


RWTCountingBody<Mutex> RWTMonitor<Mutex>

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Member Functions

Package

Smart Pointer

Header File

#include <rw/pointer/RWTCountingBody.h>

Description

RWTCountingBody<Mutex> is a base class for classes that must maintain a reference count. It can be safely used in a multithreaded environment, when parameterized with a non-null mutex. If multithread safety is not an issue, use a null mutex as the template type.

Example

Protected Constructors

RWTCountingBody(RWStaticCtor);
RWTCountingBody(const RWTCountingBody<Mutex>& second);
RWTCountingBody(unsigned initCount = 0);

Public Member Operator

RWTCountingBody<Mutex>&
operator=(const RWTCountingBody<Mutex>& second);

Public Member Functions

unsigned
addReference(void);
unsigned
references(void) const;
unsigned
removeReference(void);


Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.