api

condvar.ch

Declarations in condvar.ch

8 declarationsstd

Declarations

Public only
pthread_cond_init#
Publicfunction
func pthread_cond_init(cond : *u8, attr : *void) : int
pthread_cond_destroy#
Publicfunction
func pthread_cond_destroy(cond : *u8) : int
pthread_cond_wait#
Publicfunction
func pthread_cond_wait(cond : *u8, mutex : *u8) : int
pthread_cond_timedwait#
Publicfunction
func pthread_cond_timedwait(cond : *u8, mutex : *u8, abstime : *timespec) : int
pthread_cond_signal#
Publicfunction
func pthread_cond_signal(cond : *u8) : int
pthread_cond_broadcast#
Publicfunction
func pthread_cond_broadcast(cond : *u8) : int
clock_gettime#
Publicfunction
func clock_gettime(clk_id : int, ts : *timespec) : int
std#
Publicnamespace
namespace std
compute_abstime_ms#
function
func compute_abstime_ms(out : *timespec, timeout_ms : ulong) : void
CondVar#
Publicstruct
struct CondVar { var storage : u8[48] }
Cross-platform CondVar (opaque storage)
constructor#
PublicfunctionConstructor
func constructor() : CondVar
wait#
Publicfunction
func wait(self : &CondVar, mutex : &mutex) : void
wait (blocking). Caller must hold mutex before calling.
timed_wait#
Publicfunction
func timed_wait(self : &CondVar, mutex : &mutex, timeout_ms : ulong) : bool
timed_wait: returns true if signalled, false if timed out.
notify_one#
Publicfunction
func notify_one(self : &CondVar) : void
notify_all#
Publicfunction
func notify_all(self : &CondVar) : void
delete#
Publicfunction
func delete(self : &CondVar) : void
destructor: POSIX needs destroy, Windows does not.
condvar#
Publictypealias
type condvar = CondVar