Home
last modified time | relevance | path

Searched refs:tlock (Results 1 – 2 of 2) sorted by relevance

/external/e2fsprogs/lib/ext2fs/
Dtdb.c2648 static int tdb_next_lock(struct tdb_context *tdb, struct tdb_traverse_lock *tlock, in tdb_next_lock() argument
2651 int want_next = (tlock->off != 0); in tdb_next_lock()
2654 for (; tlock->hash < tdb->header.hash_size; tlock->hash++) { in tdb_next_lock()
2655 if (!tlock->off && tlock->hash != 0) { in tdb_next_lock()
2684 tdb->methods->next_hash_chain(tdb, &tlock->hash); in tdb_next_lock()
2685 if (tlock->hash == tdb->header.hash_size) { in tdb_next_lock()
2690 if (tdb_lock(tdb, tlock->hash, tlock->lock_rw) == -1) in tdb_next_lock()
2694 if (!tlock->off) { in tdb_next_lock()
2695 if (tdb_ofs_read(tdb, TDB_HASH_TOP(tlock->hash), in tdb_next_lock()
2696 &tlock->off) == -1) in tdb_next_lock()
[all …]
/external/python/cpython3/Lib/
Dthreading.py1272 tlock = _main_thread._tstate_lock
1275 assert tlock is not None
1276 assert tlock.locked()
1277 tlock.release()