Rapicorn - Experimental UI Toolkit - Source Code  13.07.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Rapicorn::ThreadInfo Struct Reference

Class keeping information per Thread. More...

#include <thread.hh>

List of all members.

Hazard Pointers

typedef std::vector< void * > VoidPointers
void *volatile hp [8]
 Hazard pointers variables, see: http://www.research.ibm.com/people/m/michael/ieeetpds-2004.pdf .
static VoidPointers collect_hazards ()
 Collect hazard pointers from all threads. Returns sorted vector of unique elements.
static bool lookup_pointer (const std::vector< void * > &ptrs, void *arg)
 Lookup pointers in a hazard pointer vector.

Thread identification

static ThreadInfoself ()
 Get ThreadInfo for the current thread, inlined, using fast thread local storage.
String ident ()
 Simple identifier for this thread, usually TID/PID.
String name ()
 Get thread name.
void name (const String &newname)
 Change thread name.

Accessing custom data members

For further details, see DataListContainer.

template<typename T >
get_data (DataKey< T > *key)
template<typename T >
void set_data (DataKey< T > *key, T data)
template<typename T >
void delete_data (DataKey< T > *key)
template<typename T >
swap_data (DataKey< T > *key)
template<typename T >
swap_data (DataKey< T > *key, T data)

Detailed Description

Class keeping information per Thread.


Member Function Documentation

bool Rapicorn::ThreadInfo::lookup_pointer ( const std::vector< void * > &  ptrs,
void *  arg 
) [inline, static]

Lookup pointers in a hazard pointer vector.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines