New empth_name() and empth_set_name()
This commit is contained in:
parent
2e5915dd09
commit
2ddeda99d0
6 changed files with 88 additions and 0 deletions
|
@ -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().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue