#include <signal.h>
#include <cybergarage/util/cthread.h>
#include <cybergarage/util/clog.h>
#include <string.h>
Functions | |
static void | sig_handler (int sign) |
static void * | PosixThreadProc (void *param) |
CgThread * | cg_thread_new () |
BOOL | cg_thread_delete (CgThread *thread) |
BOOL | cg_thread_start (CgThread *thread) |
BOOL | cg_thread_stop (CgThread *thread) |
BOOL | cg_thread_restart (CgThread *thread) |
BOOL | cg_thread_isrunnable (CgThread *thread) |
void | cg_thread_setaction (CgThread *thread, CG_THREAD_FUNC func) |
void | cg_thread_setuserdata (CgThread *thread, void *value) |
void * | cg_thread_getuserdata (CgThread *thread) |
|
Stop and destroy a thread.
|
|
Get the user data pointer
|
|
Check if a thread has been started
|
|
Create a new thread |
|
Restart a thread. Essentially calls cg_thread_stop() and cg_thread_start()
|
|
Set the thread's worker function.
|
|
Set the user data pointer
|
|
Start a thread (must be created first with ch_thread_new())
|
|
Stop a running thread.
|
|
|
|
|