API Reference Manual  1.45.0
api/spec/spinlock.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2013-2018 Linaro Limited
3  */
4 
11 #ifndef ODP_API_SPEC_SPINLOCK_H_
12 #define ODP_API_SPEC_SPINLOCK_H_
13 #include <odp/visibility_begin.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
40 
47 
57 
64 
74 
79 #ifdef __cplusplus
80 }
81 #endif
82 
83 #include <odp/visibility_end.h>
84 #endif
void odp_spinlock_lock(odp_spinlock_t *splock)
Acquire spin lock.
void odp_spinlock_init(odp_spinlock_t *splock)
Initialize spin lock.
int odp_spinlock_is_locked(odp_spinlock_t *splock)
Check if spin lock is busy (locked).
void odp_spinlock_unlock(odp_spinlock_t *splock)
Release spin lock.
int odp_spinlock_trylock(odp_spinlock_t *splock)
Try to acquire spin lock.