New empth_name() and empth_set_name()

This commit is contained in:
Ron Koenderink 2008-09-11 14:46:31 -06:00
parent 2e5915dd09
commit 2ddeda99d0
6 changed files with 88 additions and 0 deletions

View file

@ -127,6 +127,16 @@ empth_t *empth_create(void (*entry)(void *),
*/
empth_t *empth_self(void);
/*
* Return the name of the current thread.
*/
char *empth_name(void);
/*
* Sets the name of the current thread.
*/
void empth_set_name(char *);
/*
* Terminate the current thread.
* The current thread should not be the thread that executed main().