OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 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 | 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/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 | 4 |
5 #ifdef DEBUG | |
6 static const char CVS_ID[] = "@(#) $RCSfile$ $Revision$ $Date$"; | |
7 #endif /* DEBUG */ | |
8 | |
9 /* | 5 /* |
10 * mutex.c | 6 * mutex.c |
11 * | 7 * |
12 * This file implements a mutual-exclusion locking facility for Modules | 8 * This file implements a mutual-exclusion locking facility for Modules |
13 * using the NSS Cryptoki Framework. | 9 * using the NSS Cryptoki Framework. |
14 */ | 10 */ |
15 | 11 |
16 #ifndef CK_T | 12 #ifndef CK_T |
17 #include "ck.h" | 13 #include "ck.h" |
18 #endif /* CK_T */ | 14 #endif /* CK_T */ |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 #ifdef DEBUG | 260 #ifdef DEBUG |
265 CK_RV rv = nssCKFWMutex_verifyPointer(mutex); | 261 CK_RV rv = nssCKFWMutex_verifyPointer(mutex); |
266 if( CKR_OK != rv ) { | 262 if( CKR_OK != rv ) { |
267 return rv; | 263 return rv; |
268 } | 264 } |
269 #endif /* DEBUG */ | 265 #endif /* DEBUG */ |
270 | 266 |
271 return nssCKFWMutex_Unlock(mutex); | 267 return nssCKFWMutex_Unlock(mutex); |
272 } | 268 } |
273 | 269 |
OLD | NEW |