#include <stdint.h>
#include "utils/arax_assert.h"
Go to the source code of this file.
◆ utils_spinlock
◆ utils_spinlock_init()
Initialize lock
as unlocked.
- Parameters
-
Definition at line 19 of file spinlock.h.
◆ utils_spinlock_lock()
Lock lock
.
Will attempt to lock lock
. Will spin until succesfull.
- Parameters
-
Definition at line 32 of file spinlock.h.
◆ utils_spinlock_unlock()
Will unlock lock
that was previously locked.
- Note
- Calling utils_spinlock_unlock on an unlocked utils_spinlock instance is an error.
- Parameters
-
Definition at line 48 of file spinlock.h.
References arax_assert.