Skip to content

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
);

Parameters

func (MTY_ThreadFunc)

Function that executes on its own thread.

opaque (void *)

Passed to func when it is called.

Return value

MTY_Thread *

This function can not return NULL. It will call abort() on failure.

The returned MTY_Thread must be destroyed with MTY_ThreadDestroy.

Platform support

Windows   macOS   Android   Linux  

See also

Module: Thread

Clone this wiki locally