OLD | NEW |
| (Empty) |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | |
2 * License, v. 2.0. If a copy of the MPL was not distributed with this | |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
4 /* | |
5 * pkix_pl_rwlock.h | |
6 * | |
7 * Read/Write Lock Definition | |
8 * | |
9 */ | |
10 | |
11 #ifndef _PKIX_PL_RWLOCK_H | |
12 #define _PKIX_PL_RWLOCK_H | |
13 | |
14 #include "pkix_pl_common.h" | |
15 | |
16 #ifdef __cplusplus | |
17 extern "C" { | |
18 #endif | |
19 | |
20 struct PKIX_PL_RWLockStruct { | |
21 PRRWLock* lock; | |
22 PKIX_UInt32 readCount; | |
23 PKIX_Boolean writeLocked; | |
24 }; | |
25 | |
26 /* see source file for function documentation */ | |
27 | |
28 PKIX_Error * | |
29 pkix_pl_RWLock_RegisterSelf(void *plContext); | |
30 | |
31 #ifdef __cplusplus | |
32 } | |
33 #endif | |
34 | |
35 #endif /* _PKIX_PL_RWLOCK_H */ | |
OLD | NEW |