libwallaby  v24
The wallaby standard library
thread.h File Reference

Threading methods. More...

#include "export.h"
#include "vtable.h"

Go to the source code of this file.

Classes

struct  mutex
 
struct  thread
 

Typedefs

typedef void(* thread_function) ()
 

Functions

VF EXPORT_SYM mutex mutex_create ()
 
VF EXPORT_SYM void mutex_lock (mutex m)
 
VF EXPORT_SYM int mutex_trylock (mutex m)
 
VF EXPORT_SYM void mutex_unlock (mutex m)
 
VF EXPORT_SYM void mutex_destroy (mutex m)
 
VF EXPORT_SYM thread thread_create (thread_function func)
 
VF EXPORT_SYM void thread_start (thread id)
 
VF EXPORT_SYM void thread_wait (thread id)
 
VF EXPORT_SYM void thread_destroy (thread id)
 

Detailed Description

Threading methods.

Author
Braden McDorman

Typedef Documentation

◆ thread_function

typedef void(* thread_function) ()