#include "thread.h"
#include "tqueue.h"
#include "io.h"
Go to the source code of this file.
Data Structures | |
struct | rwlock |
Typedefs | |
typedef rwlock | rwlock_t |
Functions | |
void | rwlock_init (rwlock_t *rwl) |
void | rwlock_destroy (rwlock_t *rwl) |
Destroy r/w lock. | |
void | rwlock_read_lock (rwlock_t *rwl) |
Lock the r/w lock for reading. | |
void | rwlock_write_lock (rwlock_t *rwl) |
Lock the r/w lock for writing. | |
int | rwlock_read_timeout (rwlock_t *rwl, const unsigned int usec) |
Read lock with timeout. | |
int | rwlock_write_timeout (rwlock_t *rwl, const unsigned int usec) |
Write lock with timeout. | |
void | rwlock_write_unlock (rwlock_t *rwl) |
Release r/w lock locked for writing. | |
void | rwlock_read_unlock (rwlock_t *rwl) |
Release r/w lock locked for reading. |
void rwlock_destroy | ( | rwlock_t * | rwl | ) |
Destroy r/w lock.
rwl | - r/w lock structure |
void rwlock_init | ( | rwlock_t * | rwl | ) |
rwl | - r/w lock structure |
void rwlock_read_lock | ( | rwlock_t * | rwl | ) |
Lock the r/w lock for reading.
rwl | - r/w lock structure |
int rwlock_read_timeout | ( | rwlock_t * | rwl, | |
const unsigned int | usec | |||
) |
Read lock with timeout.
rwl | - r/w lock structure | |
usec | - count of microseconds |
void rwlock_read_unlock | ( | rwlock_t * | rwl | ) |
Release r/w lock locked for reading.
rwl | - r/w lock structure |
void rwlock_write_lock | ( | rwlock_t * | rwl | ) |
Lock the r/w lock for writing.
rwl | - r/w lock structure |
int rwlock_write_timeout | ( | rwlock_t * | rwl, | |
const unsigned int | usec | |||
) |
Write lock with timeout.
rwl | - r/w lock structure | |
usec | - count of microseconds |
void rwlock_write_unlock | ( | rwlock_t * | rwl | ) |
Release r/w lock locked for writing.
rwl | - r/w lock structure |