API Reference Manual 1.51.0
Loading...
Searching...
No Matches
spinlock.h File Reference

ODP spinlock. More...

#include <odp/visibility_begin.h>
#include <odp/visibility_end.h>
Include dependency graph for api/spec/spinlock.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void odp_spinlock_init (odp_spinlock_t *splock)
 Initialize spin lock.
 
void odp_spinlock_lock (odp_spinlock_t *splock)
 Acquire spin lock.
 
int odp_spinlock_trylock (odp_spinlock_t *splock)
 Try to acquire spin lock.
 
void odp_spinlock_unlock (odp_spinlock_t *splock)
 Release spin lock.
 
int odp_spinlock_is_locked (odp_spinlock_t *splock)
 Check if spin lock is busy (locked).
 

Detailed Description

ODP spinlock.

Definition in file api/spec/spinlock.h.