Reduct  v4.0.5-1-g4851deb
A functional and immutable language.
Loading...
Searching...
No Matches
sync.h File Reference

Syncronization primitives. More...

#include <reduct/defs.h>
#include <stdbool.h>
#include <stdint.h>
#include <threads.h>
Include dependency graph for sync.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  reduct_rwmutex_t
 Read-Write Mutex structure. More...
 

Functions

static void reduct_rwmutex_init (reduct_rwmutex_t *rw)
 Initialize a read-write mutex.
 
static void reduct_rwmutex_destroy (reduct_rwmutex_t *rw)
 Destroy a read-write mutex.
 
static void reduct_rwmutex_read_lock (reduct_rwmutex_t *rw)
 Lock a rwmutex for reading.
 
static void reduct_rwmutex_read_unlock (reduct_rwmutex_t *rw)
 Unlock a rwmutex after reading.
 
static void reduct_rwmutex_write_lock (reduct_rwmutex_t *rw)
 Lock a rwmutex for writing.
 
static void reduct_rwmutex_write_unlock (reduct_rwmutex_t *rw)
 Unlock a rwmutex after writing.
 

Detailed Description

Syncronization primitives.

Definition in file sync.h.