Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Threads Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWTThreadLocal<Type>

Module:  Threads   Package:  Threading


RWTThreadLocal<Type> RWTMonitor<RWMutexLock>

Local Index

Members

Header File

#include <rw/thread/RWTThreadLocal.h> 

Description

The RWTThreadLocal class provides thread-local storage with simple by-value semantics. An RWTThreadLocal instance may be shared between multiple threads. Doing so creates one instance of typed data per thread. Each thread accesses its own private instance of the typed data whenever it uses the shared RWTThreadLocal instance.

Example

Public Constructors

RWTThreadLocal(RWStaticCtor);
RWTThreadLocal();

Public Destructor

~RWTThreadLocal();

Public Member Operators

RWTThreadLocal<Type>&
operator=(const Type& value);

Public Member Functions

Type&
getValue() const;
void
getValue(const Type& value);
bool
isSet() const;
bool
reset() const;
operator Type() const;

Private Constructor

RWTThreadLocal(const RWTThreadLocal<Type>& second);

Private Member Operator

RWTThreadLocal<Type>&
operator=(const RWTThreadLocal<Type>& second);


Previous fileTop of DocumentContentsIndex pageNext file

© 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.