| 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 /* $Id: sslmutex.h,v 1.14 2012/04/25 14:50:12 gerv%gerv.net Exp $ */ | 4 /* $Id$ */ |
| 5 #ifndef __SSLMUTEX_H_ | 5 #ifndef __SSLMUTEX_H_ |
| 6 #define __SSLMUTEX_H_ 1 | 6 #define __SSLMUTEX_H_ 1 |
| 7 | 7 |
| 8 /* What SSL really wants is portable process-shared unnamed mutexes in | 8 /* What SSL really wants is portable process-shared unnamed mutexes in |
| 9 * shared memory, that have the property that if the process that holds | 9 * shared memory, that have the property that if the process that holds |
| 10 * them dies, they are released automatically, and that (unlike fcntl | 10 * them dies, they are released automatically, and that (unlike fcntl |
| 11 * record locking) lock to the thread, not to the process. | 11 * record locking) lock to the thread, not to the process. |
| 12 * NSPR doesn't provide that. | 12 * NSPR doesn't provide that. |
| 13 * Windows has mutexes that meet that description, but they're not portable. | 13 * Windows has mutexes that meet that description, but they're not portable. |
| 14 * POSIX mutexes are not automatically released when the holder dies, | 14 * POSIX mutexes are not automatically released when the holder dies, |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 #ifdef WINNT | 118 #ifdef WINNT |
| 119 | 119 |
| 120 extern SECStatus sslMutex_2LevelInit(sslMutex *sem); | 120 extern SECStatus sslMutex_2LevelInit(sslMutex *sem); |
| 121 | 121 |
| 122 #endif | 122 #endif |
| 123 | 123 |
| 124 SEC_END_PROTOS | 124 SEC_END_PROTOS |
| 125 | 125 |
| 126 #endif | 126 #endif |
| OLD | NEW |