Lines Matching full:lock
108 pthread_mutex_t lock;
124 pthread_mutex_t lock;
133 xmlMutexPtr lock;
143 * - xmlLibraryLock a global lock
198 pthread_mutex_init(&tok->lock, NULL);
226 pthread_mutex_destroy(&tok->lock);
239 * xmlMutexLock() is used to lock a libxml2 token.
248 pthread_mutex_lock(&tok->lock);
277 pthread_mutex_unlock(&tok->lock);
292 * synchronizing access to data. token_r is a re-entrant lock and thus useful
307 pthread_mutex_init(&tok->lock, NULL);
316 if ((tok->lock = xmlNewMutex()) == NULL) {
339 pthread_mutex_destroy(&tok->lock);
345 xmlFreeMutex(tok->lock);
354 * xmlRMutexLock() is used to lock a libxml2 token_r.
365 pthread_mutex_lock(&tok->lock);
369 pthread_mutex_unlock(&tok->lock);
374 pthread_cond_wait(&tok->cv, &tok->lock);
380 pthread_mutex_unlock(&tok->lock);
385 if (tok->lock->tid == find_thread(NULL)) {
389 xmlMutexLock(tok->lock);
410 pthread_mutex_lock(&tok->lock);
417 pthread_mutex_unlock(&tok->lock);
422 if (tok->lock->tid == find_thread(NULL)) {
425 xmlMutexUnlock(tok->lock);
441 /* Make sure the global init lock is initialized and then lock it. */
443 /* The mutex is statically initialized, so we just lock it. */
475 /* Lock the chosen critical section */
819 * xmlLockLibrary() is used to take out a re-entrant lock on the libxml2
834 * xmlUnlockLibrary() is used to release a re-entrant lock on the libxml2