]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #ifndef _RTE_RWLOCK_PPC_64_H_ |
2 | #define _RTE_RWLOCK_PPC_64_H_ | |
3 | ||
4 | #ifdef __cplusplus | |
5 | extern "C" { | |
6 | #endif | |
7 | ||
8 | #include "generic/rte_rwlock.h" | |
9 | ||
10 | static inline void | |
11 | rte_rwlock_read_lock_tm(rte_rwlock_t *rwl) | |
12 | { | |
13 | rte_rwlock_read_lock(rwl); | |
14 | } | |
15 | ||
16 | static inline void | |
17 | rte_rwlock_read_unlock_tm(rte_rwlock_t *rwl) | |
18 | { | |
19 | rte_rwlock_read_unlock(rwl); | |
20 | } | |
21 | ||
22 | static inline void | |
23 | rte_rwlock_write_lock_tm(rte_rwlock_t *rwl) | |
24 | { | |
25 | rte_rwlock_write_lock(rwl); | |
26 | } | |
27 | ||
28 | static inline void | |
29 | rte_rwlock_write_unlock_tm(rte_rwlock_t *rwl) | |
30 | { | |
31 | rte_rwlock_write_unlock(rwl); | |
32 | } | |
33 | ||
34 | #ifdef __cplusplus | |
35 | } | |
36 | #endif | |
37 | ||
38 | #endif /* _RTE_RWLOCK_PPC_64_H_ */ |