XThread
typedef struct XThread XThread;
typedef struct XThread XThread;
typedef void *(*XThreadFunc)(void *);
Create and start a new thread.
int32_t x_thread_create(
XThread **t,
XThreadFunc func,
void *arg
);
XThread **tXThreadFunc funcvoid *arg0 on success, non-zero on failure.
Destroy a thread handle and release its resources.
void x_thread_destroy(XThread *t);
XThread *tWait for a thread to finish execution.
void x_thread_join(XThread *t);
XThread *t