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 * hash.c | 6 * hash.c |
11 * | 7 * |
12 * This is merely a couple wrappers around NSPR's PLHashTable, using | 8 * This is merely a couple wrappers around NSPR's PLHashTable, using |
13 * the identity hash and arena-aware allocators. | 9 * the identity hash and arena-aware allocators. |
14 * This is a copy of ckfw/hash.c, with modifications to use NSS types | 10 * This is a copy of ckfw/hash.c, with modifications to use NSS types |
15 * (not Cryptoki types). Would like for this to be a single implementation, | 11 * (not Cryptoki types). Would like for this to be a single implementation, |
16 * but doesn't seem like it will work. | 12 * but doesn't seem like it will work. |
17 */ | 13 */ |
18 | 14 |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 as.closure = closure; | 364 as.closure = closure; |
369 | 365 |
370 PZ_Lock(hash->mutex); | 366 PZ_Lock(hash->mutex); |
371 | 367 |
372 PL_HashTableEnumerateEntries(hash->plHashTable, nss_hash_enumerator, &as); | 368 PL_HashTableEnumerateEntries(hash->plHashTable, nss_hash_enumerator, &as); |
373 | 369 |
374 (void)PZ_Unlock(hash->mutex); | 370 (void)PZ_Unlock(hash->mutex); |
375 | 371 |
376 return; | 372 return; |
377 } | 373 } |
OLD | NEW |