API Reference Manual  1.45.0
api/abi-default/rwlock.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2015-2018 Linaro Limited
3  */
4 
11 #ifndef ODP_ABI_RWLOCK_H_
12 #define ODP_ABI_RWLOCK_H_
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 #include <odp/api/atomic.h>
19 
21 typedef struct odp_rwlock_s {
27 
28 #ifdef __cplusplus
29 }
30 #endif
31 
32 #endif
ODP atomic operations.
struct odp_rwlock_s odp_rwlock_t
ODP reader/writer lock.
odp_atomic_u32_t cnt
lock count 0 lock not taken -1 write lock taken >0 read lock(s) taken