ThreadsStdc extension

C11 Threads implementation mapping to Dart Isolates.

on

Methods

mtx_init(mtx_t mtx, int type) int

Available on Stdc, provided by the ThreadsStdc extension

Initialize a mutex
mtx_lock(mtx_t mtx) int

Available on Stdc, provided by the ThreadsStdc extension

Lock a mutex
mtx_unlock(mtx_t mtx) int

Available on Stdc, provided by the ThreadsStdc extension

Unlock a mutex
thrd_create(thrd_t thr, int func(dynamic), dynamic arg) int

Available on Stdc, provided by the ThreadsStdc extension

Create a thread
thrd_join(thrd_t thr, List<int>? res) int

Available on Stdc, provided by the ThreadsStdc extension

Join a thread
thrd_yield() → void

Available on Stdc, provided by the ThreadsStdc extension

Yield the current thread