Generic Lightweight Thread (GLT) Library
2.5
A common API for Lightweight Thread solutions
|
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... | |
These functions manage the GLT keys for the ULTs.
void glt_key_create | ( | void(*)(void *value) | destructor, |
GLT_key * | newkey | ||
) |
Creates a key.
glt_key_create()
creates a key.
[in] | destructor | Hande to newly created GLT_ult . |
[out] | newkey | Hande to newly created GLT_key . |
void glt_key_free | ( | GLT_key * | key | ) |
Destroys a key.
glt_key_free()
destroys a key for ULTs.
[in] | key | Handle 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.
[in] | key | Handle of the target GLT_key . |
[out] | value | obtained value. |
void glt_key_set | ( | GLT_key | key, |
void * | value | ||
) |
Sets new value to a key.
glt_key_set()
Sets value to a key.
[in] | key | Handle of the target GLT_key . |
[in] | value | to be set. |