API Reference Manual
1.46.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
{
22
odp_atomic_u32_t
cnt
;
26
}
odp_rwlock_t
;
27
28
#ifdef __cplusplus
29
}
30
#endif
31
32
#endif
atomic.h
ODP atomic operations.
odp_rwlock_t
struct odp_rwlock_s odp_rwlock_t
ODP reader/writer lock.
odp_atomic_u32_s
Definition:
api/abi-default/atomic.h:26
odp_rwlock_s
Definition:
api/abi-default/rwlock.h:21
odp_rwlock_s::cnt
odp_atomic_u32_t cnt
lock count 0 lock not taken -1 write lock taken >0 read lock(s) taken
Definition:
api/abi-default/rwlock.h:22
include
odp
api
abi-default
rwlock.h
Generated by
1.9.1