Go to the source code of this file.
Data Structures | |
struct | IdEntry |
struct | IdTable |
Typedefs | |
typedef IdEntry | IdEntry |
Functions | |
int | id_table_create (IdTable *table, unsigned int size) |
Creates an id table. | |
void | id_table_destroy (IdTable *table) |
Destroys an id table. | |
int | id_table_insert (IdTable *table, void *data) |
Allocate an id. | |
void * | id_table_remove (IdTable *table, int id) |
Remove an id from the table. | |
void * | id_table_find (IdTable *table, int id) |
Find an id in the table. |
Provides the interface for id mapping facilities for threads.
|
Creates an id table. Creates a new id table of the specified size.
|
|
Destroys an id table. Frees any memory used by the id table.
|
|
Find an id in the table. Returns the data associated with a thread id.
|
|
Allocate an id. Insert a thread into the id table with a new id.
|
|
Remove an id from the table. Removes an id from the table.
|