-
Notifications
You must be signed in to change notification settings - Fork 55
MTY_ThreadCreate
chrisd1100 edited this page Aug 25, 2022
·
1 revision
Create an MTY_Thread
that executes asynchronously.
MTY_Thread *MTY_ThreadCreate(
MTY_ThreadFunc func,
void * opaque
);
func
(MTY_ThreadFunc
)
Function that executes on its own thread.
opaque
(void *
)
Passed to func
when it is called.
MTY_Thread *
This function can not return NULL
. It will call abort()
on failure.
The returned MTY_Thread
must be destroyed with MTY_ThreadDestroy
.