#include <unixstl/synch/tss_index.hpp>
Public Types | |
Types | |
typedef tss_index | class_type |
This class. | |
typedef pthread_key_t | key_type |
The type of the TSS key. | |
typedef key_type | index_type |
The type of the TSS key. | |
typedef void * | value_type |
The type of the slot values. | |
Public Member Functions | |
Construction | |
tss_index () | |
Allocates a TSS key. | |
~tss_index () throw () | |
Releases the TSS key. | |
Operations | |
void | set_value (value_type value) |
Sets the value in the slot for the current thread. | |
value_type | get_value () const |
Gets the value in the slot for the current thread. | |
Accessors | |
operator key_type () const | |
Implicit conversion operator to the. |
typedef tss_index class_type |
This class.
typedef pthread_key_t key_type |
The type of the TSS key.
typedef key_type index_type |
typedef void* value_type |
The type of the slot values.
tss_index | ( | ) | [inline, explicit] |
Allocates a TSS key.
~tss_index | ( | ) | throw () [inline] |
Releases the TSS key.
void set_value | ( | value_type | value | ) | [inline] |
Sets the value in the slot for the current thread.
value_type get_value | ( | ) | const [inline] |
Gets the value in the slot for the current thread.
operator key_type | ( | ) | const [inline] |
Implicit conversion operator to the.