| 204 | /************************************************************************/ |
| 205 | |
| 206 | static void pj_init_lock() |
| 207 | |
| 208 | { |
| 209 | #if _WIN32_WINNT >= 0x0600 |
| 210 | static INIT_ONCE sInitOnce = INIT_ONCE_STATIC_INIT; |
| 211 | InitOnceExecuteOnce( &sInitOnce, pj_create_lock, nullptr, nullptr ); |
| 212 | #else |
| 213 | if( mutex_lock == nullptr ) |
| 214 | mutex_lock = CreateMutex( nullptr, FALSE, nullptr ); |
| 215 | #endif |
| 216 | } |
| 217 | |
| 218 | /************************************************************************/ |
| 219 | /* pj_acquire_lock() */ |
no outgoing calls
no test coverage detected