Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXAutoThreadStorageKey Class Reference

Automatically generated thread-local storage key. More...

#include <FXThread.h>

List of all members.

Public Member Functions

 FXAutoThreadStorageKey ()
 operator FXThreadStorageKey () const
 ~FXAutoThreadStorageKey ()


Detailed Description

Automatically generated thread-local storage key.

This class manages a thread-local storage key, generating a new one when constructed, and deleting the storage key when destroyed. These keys can be used just like FXThreadStorageKey itself by virtue of the conversion operator. Note that no assignment or copy-constructors have been defined; thus each instance of this class represents a unique thread-local storage key.


Constructor & Destructor Documentation

FX::FXAutoThreadStorageKey::FXAutoThreadStorageKey (  ) 

Acquire a unique thread-local storage key.

FX::FXAutoThreadStorageKey::~FXAutoThreadStorageKey (  ) 

Release thread-local storage key.


Member Function Documentation

FX::FXAutoThreadStorageKey::operator FXThreadStorageKey (  )  const [inline]

Return the thread-local storage key.

Copyright © 1997-2009 Jeroen van der Zijp