MCPcopy Index your code
hub / github.com/MapServer/MapServer / msAcquireLock

Function msAcquireLock

mapthread.c:197–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195/************************************************************************/
196
197void msAcquireLock( int nLockId )
198
199{
200 if( mutexes_initialized == 0 )
201 msThreadInit();
202
203 assert( nLockId >= 0 && nLockId < mutexes_initialized );
204
205 if( thread_debug )
206 fprintf( stderr, "msAcquireLock(%d/%s) (posix)\n",
207 nLockId, lock_names[nLockId] );
208
209 pthread_mutex_lock( mutex_locks + nLockId );
210}
211
212/************************************************************************/
213/* msReleaseLock() */

Callers 15

msGDALInitializeFunction · 0.85
msGDALCleanupFunction · 0.85
msSaveImageGDALFunction · 0.85
msConnPoolRegisterFunction · 0.85
msConnPoolRequestFunction · 0.85
msConnPoolReleaseFunction · 0.85
msConnPoolFinalCleanupFunction · 0.85
msRasterQueryByRectFunction · 0.85
msRASTERLayerGetExtentFunction · 0.85

Calls 1

msThreadInitFunction · 0.85

Tested by

no test coverage detected