Data Structures | Macros | Functions
picotm-lib-rwlock.h File Reference
#include <stdatomic.h>
#include <stdbool.h>
#include "compiler.h"

Data Structures

struct  picotm_rwlock
 A reader-writer lock. More...
 

Macros

#define PICOTM_RWLOCK_INITIALIZER
 Initializer macro for R/W state variables.
 

Functions

PICOTM_NOTHROW void picotm_rwlock_init (struct picotm_rwlock *self)
 
PICOTM_NOTHROW void picotm_rwlock_try_rdlock (struct picotm_rwlock *self, struct picotm_error *error)
 
PICOTM_NOTHROW void picotm_rwlock_try_wrlock (struct picotm_rwlock *self, bool upgrade, struct picotm_error *error)
 
PICOTM_NOTHROW void picotm_rwlock_uninit (struct picotm_rwlock *self)
 
PICOTM_NOTHROW void picotm_rwlock_unlock (struct picotm_rwlock *self)