module core.c.pthread

Pthread bindings.

Just enough to start and join a thread.

Code Map

//! Pthread bindings.
module core.c.pthread;


alias pthread_t = c_ulong;

union pthread_mutex_t
{
}

fn pthread_create(pthread_t*, void*, fn (void*) (void*), void*) i32;
fn pthread_join(pthread_t, void*) i32;
fn pthread_mutex_init(pthread_mutex_t*, void*) i32;
fn pthread_mutex_destroy(pthread_mutex_t*) i32;
fn pthread_mutex_lock(pthread_mutex_t*) i32;
fn pthread_mutex_trylock(pthread_mutex_t*) i32;
fn pthread_mutex_unlock(pthread_mutex_t*) i32;