DPDK
2.0.0
|
Data Structures | |
struct | rte_rwlock_t |
Macros | |
#define | RTE_RWLOCK_INITIALIZER { 0 } |
Functions | |
static void | rte_rwlock_init (rte_rwlock_t *rwl) |
static void | rte_rwlock_read_lock (rte_rwlock_t *rwl) |
static void | rte_rwlock_read_unlock (rte_rwlock_t *rwl) |
static void | rte_rwlock_write_lock (rte_rwlock_t *rwl) |
static void | rte_rwlock_write_unlock (rte_rwlock_t *rwl) |
RTE Read-Write Locks
This file defines an API for read-write locks. The lock is used to protect data that allows multiple readers in parallel, but only one writer. All readers are blocked until the writer is finished writing.
#define RTE_RWLOCK_INITIALIZER { 0 } |
A static rwlock initializer.
|
inlinestatic |
Initialize the rwlock to an unlocked state.
rwl | A pointer to the rwlock structure. |
|
inlinestatic |
Take a read lock. Loop until the lock is held.
rwl | A pointer to a rwlock structure. |
|
inlinestatic |
Release a read lock.
rwl | A pointer to the rwlock structure. |
|
inlinestatic |
Take a write lock. Loop until the lock is held.
rwl | A pointer to a rwlock structure. |
|
inlinestatic |
Release a write lock.
rwl | A pointer to a rwlock structure. |