Task Scheduler
f3c51100
|
Functions | |
TASH_SCH_EXTERN schThread * | schCreateThread (int affinity, schFunc pfunc, void *userData) |
Create new thread object with a custom callback entrypoint. More... | |
TASH_SCH_EXTERN int | schDeleteThread (schThread *thread) |
Delete thread This will cause the system to release the thread resources. More... | |
TASH_SCH_EXTERN int | schWaitThread (schThread *thread, void **retval) |
TASH_SCH_EXTERN int | schSetThreadName (schThread *thread, const char *name) |
TASH_SCH_EXTERN schThread * | schCurrentThread (void) |
TASH_SCH_EXTERN int | schRaiseThreadSignal (schThread *thread, int signal) |
TASH_SCH_EXTERN schThread* schCreateThread | ( | int | affinity, |
schFunc | pfunc, | ||
void * | userData | ||
) |
Create new thread object with a custom callback entrypoint.
affinity | core index. |
pfunc | function map to the thread. |
userData | user data associated with the function. |
TASH_SCH_EXTERN int schDeleteThread | ( | schThread * | thread | ) |
Delete thread This will cause the system to release the thread resources.
thread | valid thread. |
TASH_SCH_EXTERN int schWaitThread | ( | schThread * | thread, |
void ** | retval | ||
) |
Wait in till thread is finished with the callback entry function.
thread | valid thread. |
retval |
TASH_SCH_EXTERN int schSetThreadName | ( | schThread * | thread, |
const char * | name | ||
) |
Set thread name.
thread | valid thread. |
name | non-null terminated string. |
TASH_SCH_EXTERN schThread* schCurrentThread | ( | void | ) |
Get current thread pointer object.
TASH_SCH_EXTERN int schRaiseThreadSignal | ( | schThread * | thread, |
int | signal | ||
) |
Raise a specific signal to a specified thread.
thread | valid thread object. |
signal | valid signal. |