PthreadStdc extension
POSIX Threads implementation mapping to Dart Isolates. Note: Since Dart isolates do not share memory, true C-style shared-memory concurrency is not possible natively without dart:ffi. This provides a message-passing abstraction and structural API.
- on
Methods
-
pthread_create(
pthread_t thread, dynamic attr, void start_routine(dynamic), dynamic arg) → int -
Available on Stdc, provided by the PthreadStdc extension
Create a thread -
pthread_join(
pthread_t thread, List? retval) → int -
Available on Stdc, provided by the PthreadStdc extension
Join a thread -
pthread_mutex_init(
pthread_mutex_t mutex, dynamic attr) → int -
Available on Stdc, provided by the PthreadStdc extension
Initialize a mutex -
pthread_mutex_lock(
pthread_mutex_t mutex) → int -
Available on Stdc, provided by the PthreadStdc extension
Lock a mutex -
pthread_mutex_unlock(
pthread_mutex_t mutex) → int -
Available on Stdc, provided by the PthreadStdc extension
Unlock a mutex