MCPcopy Create free account
hub / github.com/MapServer/MapServer / msThreadInit

Function msThreadInit

mapthread.c:167–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165/************************************************************************/
166
167void msThreadInit()
168
169{
170 static pthread_mutex_t core_lock = PTHREAD_MUTEX_INITIALIZER;
171
172 if( thread_debug )
173 fprintf( stderr, "msThreadInit() (posix)\n" );
174
175 pthread_mutex_lock( &core_lock );
176
177 for( ; mutexes_initialized < TLOCK_STATIC_MAX; mutexes_initialized++ )
178 pthread_mutex_init( mutex_locks + mutexes_initialized, NULL );
179
180 pthread_mutex_unlock( &core_lock );
181}
182
183/************************************************************************/
184/* msGetThreadId() */

Callers 2

msSetupFunction · 0.85
msAcquireLockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected