8#include <cx/thread/atomic.h>
10#include <cx/thread/threadbase.h>
12typedef struct Thread Thread;
13typedef struct Thread_WeakRef Thread_WeakRef;
17typedef struct Thread {
33 atomic(
bool) requestExit;
37#define Thread(inst) ((Thread*)(unused_noeval((inst) && &((inst)->_is_Thread)), (inst)))
38#define ThreadNone ((Thread*)NULL)
40typedef struct Thread_WeakRef {
43 void* _is_Thread_WeakRef;
44 void* _is_ObjInst_WeakRef;
49#define Thread_WeakRef(inst) ((Thread_WeakRef*)(unused_noeval((inst) && &((inst)->_is_Thread_WeakRef)), (inst)))
53#define _throbjCreate(func, name, n, args, ui) Thread_create(func, name, n, args, ui)
Event synchronization primitive.
#define saDeclarePtr(name)
#define _objfactory_guaranteed
#define stvar(typen, val)
CX Object System - Object-oriented programming in C.
Dynamic arrays with type-safe generic programming.
Variant type containers and type-safe variadic argument support.