MCPcopy Create free account
hub / github.com/Kitware/VTK / pj_init_lock

Function pj_init_lock

ThirdParty/libproj/vtklibproj/src/mutex.cpp:206–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204/************************************************************************/
205
206static 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() */

Callers 2

pj_acquire_lockFunction · 0.85
pj_release_lockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected