| 165 | /************************************************************************/ |
| 166 | |
| 167 | void 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() */ |
no outgoing calls
no test coverage detected