int twThread_Stop(twThread *t, int32_t waitTime)
Stops a twThread.
Definition: twPThreads.c:74
char twThread_IsPaused(twThread *t)
Checks if a twThread is paused via twThread::isPaused of t.
Definition: twPThreads.c:101
TW_THREAD_ID id
Definition: twThreads.h:33
twTaskFunction func
Definition: twThreads.h:34
int twThread_Resume(twThread *t)
Resumes a twThread.
Definition: twPThreads.c:91
int twThread_Start(twThread *t)
Starts a twThread.
Definition: twPThreads.c:68
uint32_t rate
Definition: twThreads.h:35
char twThread_IsStopped(twThread *t)
Checks if a twThread has stopped via twThread::hasStopped of t.
Definition: twPThreads.c:105
struct twThread twThread
twThread structure definition.
Wrappers for OS-specific functionality.
void * opaquePtr
Definition: twThreads.h:40
twThread structure definition.
Definition: twThreads.h:32
char isPaused
Definition: twThreads.h:37
char hasStopped
Definition: twThreads.h:39
twThread * twThread_Create(twTaskFunction func, uint32_t rate, void *opaquePtr, char autoStart)
Creates a new twThread.
Definition: twPThreads.c:39
Common definitions for C SDK.
TW_THREAD_ID twThread_GetThreadId(twThread *t)
Gets the id of a thread via twThread::id of t.
Definition: twPThreads.c:109
void twThread_Delete(void *t)
Frees all memory associated with a twThread and all of its owned substructures.
Definition: twPThreads.c:61
void(* twTaskFunction)(uint64_t sys_msecs, void *params)
Function signature of a task called in round robin fashion.
Definition: twTasker.h:32
int twThread_Pause(twThread *t)
Pauses a twThread.
Definition: twPThreads.c:85
char isRunning
Definition: twThreads.h:36
char twThread_IsRunning(twThread *t)
Checks if a twThread is running via twThread::isRunning of t.
Definition: twPThreads.c:97
char shutdownRequested
Definition: twThreads.h:38