Generic Lightweight Thread (GLT) Library  2.5
A common API for Lightweight Thread solutions
 All Functions Variables Groups Pages
Functions
Key functions

Functions

void glt_key_create (void(*destructor)(void *value), GLT_key *newkey)
 Creates a key. More...
 
void glt_key_free (GLT_key *key)
 Destroys a key. More...
 
void glt_key_set (GLT_key key, void *value)
 Sets new value to a key. More...
 
void glt_key_get (GLT_key key, void **value)
 Gets value from a key. More...
 

Detailed Description

These functions manage the GLT keys for the ULTs.

Function Documentation

void glt_key_create ( void(*)(void *value)  destructor,
GLT_key newkey 
)

Creates a key.

glt_key_create() creates a key.

Parameters
[in]destructorHande to newly created GLT_ult.
[out]newkeyHande to newly created GLT_key.
void glt_key_free ( GLT_key key)

Destroys a key.

glt_key_free() destroys a key for ULTs.

Parameters
[in]keyHandle to the target GLT_key.
void glt_key_get ( GLT_key  key,
void **  value 
)

Gets value from a key.

glt_key_get() Gets value from a key.

Parameters
[in]keyHandle of the target GLT_key.
[out]valueobtained value.
void glt_key_set ( GLT_key  key,
void *  value 
)

Sets new value to a key.

glt_key_set() Sets value to a key.

Parameters
[in]keyHandle of the target GLT_key.
[in]valueto be set.