Locking interface used in nm core. More...
#include <pthread.h>
Go to the source code of this file.
Functions | |
static void | nm_core_lock (struct nm_core *p_core) |
acquire the nm core lock More... | |
static int | nm_core_trylock (struct nm_core *p_core) |
try to lock the nm core core return 1 is lock is successfully acquired, 0 otherwise More... | |
static void | nm_core_unlock (struct nm_core *p_core) |
unlock the nm core lock More... | |
static void | nm_core_lock_init (struct nm_core *p_core) |
init the core lock More... | |
static void | nm_core_lock_destroy (struct nm_core *p_core) |
destroy the core lock More... | |
static void | nm_core_nolock_assert (struct nm_core *p_core) |
assert that current thread doesn't hold the lock More... | |
static void | nm_core_lock_assert (struct nm_core *p_core) |
assert that current thread holds the lock More... | |
static void | nm_core_lock (struct nm_core *p_core __attribute__((unused))) |
static int | nm_core_trylock (struct nm_core *p_core __attribute__((unused))) |
static void | nm_core_unlock (struct nm_core *p_core __attribute__((unused))) |
static void | nm_core_lock_init (struct nm_core *p_core __attribute__((unused))) |
static void | nm_core_lock_destroy (struct nm_core *p_core __attribute__((unused))) |
static void | nm_core_lock_assert (struct nm_core *p_core __attribute__((unused))) |
static void | nm_core_nolock_assert (struct nm_core *p_core __attribute__((unused))) |
Locking interface used in nm core.
This is not part of the public API and may not be used to lock something else than nmad core.
Definition in file nm_lock.h.
|
inlinestatic |
Definition at line 58 of file nm_lock.h.
References nm_profile_inc, and nm_spin_lock().
|
inlinestatic |
acquire the nm core lock
|
inlinestatic |
Definition at line 87 of file nm_lock.h.
References nm_spin_assert_locked().
|
inlinestatic |
assert that current thread holds the lock
Referenced by nm_core_polling_level(), nm_core_task_enqueue(), nm_gate_set_active(), nm_strat_gate_schedule(), nm_strat_pack_ctrl(), nm_strat_rdv_accept(), nm_strat_schedule(), and nm_strat_submit_req_chunk().
|
inlinestatic |
Definition at line 82 of file nm_lock.h.
References nm_spin_destroy().
|
inlinestatic |
destroy the core lock
|
inlinestatic |
Definition at line 77 of file nm_lock.h.
References nm_spin_init().
|
inlinestatic |
init the core lock
|
inlinestatic |
Definition at line 92 of file nm_lock.h.
References nm_spin_assert_notlocked().
|
inlinestatic |
assert that current thread doesn't hold the lock
Referenced by nm_core_task_enqueue(), nm_pw_completed_enqueue(), and nm_req_chunk_submit().
|
inlinestatic |
Definition at line 64 of file nm_lock.h.
References nm_profile_inc, and nm_spin_trylock().
|
inlinestatic |
try to lock the nm core core return 1 is lock is successfully acquired, 0 otherwise
Referenced by nm_core_task_enqueue().
|
inlinestatic |
Definition at line 72 of file nm_lock.h.
References nm_spin_unlock().
|
inlinestatic |
unlock the nm core lock
Referenced by nm_core_task_enqueue().