Lines Matching defs:lock
106 pthread_mutex_t lock;
122 pthread_mutex_t lock;
131 xmlMutexPtr lock;
141 * - xmlLibraryLock a global lock
196 pthread_mutex_init(&tok->lock, NULL);
224 pthread_mutex_destroy(&tok->lock);
237 * xmlMutexLock() is used to lock a libxml2 token.
246 pthread_mutex_lock(&tok->lock);
275 pthread_mutex_unlock(&tok->lock);
290 * synchronizing access to data. token_r is a re-entrant lock and thus useful
305 pthread_mutex_init(&tok->lock, NULL);
314 if ((tok->lock = xmlNewMutex()) == NULL) {
337 pthread_mutex_destroy(&tok->lock);
343 xmlFreeMutex(tok->lock);
352 * xmlRMutexLock() is used to lock a libxml2 token_r.
363 pthread_mutex_lock(&tok->lock);
367 pthread_mutex_unlock(&tok->lock);
372 pthread_cond_wait(&tok->cv, &tok->lock);
378 pthread_mutex_unlock(&tok->lock);
383 if (tok->lock->tid == find_thread(NULL)) {
387 xmlMutexLock(tok->lock);
408 pthread_mutex_lock(&tok->lock);
415 pthread_mutex_unlock(&tok->lock);
420 if (tok->lock->tid == find_thread(NULL)) {
423 xmlMutexUnlock(tok->lock);
439 /* Make sure the global init lock is initialized and then lock it. */
441 /* The mutex is statically initialized, so we just lock it. */
474 /* Lock the chosen critical section */
828 * xmlLockLibrary() is used to take out a re-entrant lock on the libxml2
843 * xmlUnlockLibrary() is used to release a re-entrant lock on the libxml2