Simbody
Classes | Namespaces | Functions | Variables

ThreadLocal.h File Reference

#include <pthread.h>
#include <map>
#include <set>

Go to the source code of this file.

Classes

class  SimTK::ThreadLocal< T >
 This class represents a "thread local" variable: one which has a different value on each thread. More...

Namespaces

namespace  SimTK
 

This is the top-level SimTK namespace into which all SimTK names are placed to avoid collision with other symbols.


Functions

template<class T >
static void SimTK::cleanUpThreadLocalStorage (void *value)

Variables

static std::map< void
*, pthread_key_t > 
SimTK::instanceMap
static std::map< pthread_key_t,
std::set< void * > > 
SimTK::keyInstances
static pthread_mutex_t SimTK::keyLock = PTHREAD_MUTEX_INITIALIZER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines