Home
last modified time | relevance | path

Searched refs:lk (Results 1 – 25 of 225) sorted by relevance

123456789

/external/libxml2/
Dlist.c59 xmlLinkDeallocator(xmlListPtr l, xmlLinkPtr lk) in xmlLinkDeallocator() argument
61 (lk->prev)->next = lk->next; in xmlLinkDeallocator()
62 (lk->next)->prev = lk->prev; in xmlLinkDeallocator()
64 l->linkDeallocator(lk); in xmlLinkDeallocator()
65 xmlFree(lk); in xmlLinkDeallocator()
100 xmlLinkPtr lk; in xmlListLowerSearch() local
104 … for(lk = l->sentinel->next;lk != l->sentinel && l->linkCompare(lk->data, data) <0 ;lk = lk->next); in xmlListLowerSearch()
105 return lk; in xmlListLowerSearch()
120 xmlLinkPtr lk; in xmlListHigherSearch() local
124 … for(lk = l->sentinel->prev;lk != l->sentinel && l->linkCompare(lk->data, data) >0 ;lk = lk->prev); in xmlListHigherSearch()
[all …]
Dxmlwriter.c105 static void xmlFreeTextWriterStackEntry(xmlLinkPtr lk);
109 static void xmlFreeTextWriterNsStackEntry(xmlLinkPtr lk);
524 xmlLinkPtr lk; in xmlTextWriterStartDocument() local
533 lk = xmlListFront(writer->nodes); in xmlTextWriterStartDocument()
534 if ((lk != NULL) && (xmlLinkGetData(lk) != NULL)) { in xmlTextWriterStartDocument()
643 xmlLinkPtr lk; in xmlTextWriterEndDocument() local
653 while ((lk = xmlListFront(writer->nodes)) != NULL) { in xmlTextWriterEndDocument()
654 p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); in xmlTextWriterEndDocument()
729 xmlLinkPtr lk; in xmlTextWriterStartComment() local
739 lk = xmlListFront(writer->nodes); in xmlTextWriterStartComment()
[all …]
/external/llvm-project/openmp/runtime/src/
Dkmp_lock.cpp73 return KMP_LOCK_STRIP(KMP_ATOMIC_LD_RLX(&lck->lk.poll)) - 1; in __kmp_get_tas_lock_owner()
77 return lck->lk.depth_locked != -1; in __kmp_is_tas_lock_nestable()
85 kmp_uint32 curr = KMP_LOCK_STRIP(lck->lk.poll); in __kmp_acquire_tas_lock_timed_template()
94 if (KMP_ATOMIC_LD_RLX(&lck->lk.poll) == tas_free && in __kmp_acquire_tas_lock_timed_template()
95 __kmp_atomic_compare_store_acq(&lck->lk.poll, tas_free, tas_busy)) { in __kmp_acquire_tas_lock_timed_template()
107 } while (KMP_ATOMIC_LD_RLX(&lck->lk.poll) != tas_free || in __kmp_acquire_tas_lock_timed_template()
108 !__kmp_atomic_compare_store_acq(&lck->lk.poll, tas_free, tas_busy)); in __kmp_acquire_tas_lock_timed_template()
135 if (KMP_ATOMIC_LD_RLX(&lck->lk.poll) == tas_free && in __kmp_test_tas_lock()
136 __kmp_atomic_compare_store_acq(&lck->lk.poll, tas_free, tas_busy)) { in __kmp_test_tas_lock()
158 KMP_ATOMIC_ST_REL(&lck->lk.poll, KMP_LOCK_FREE(tas)); in __kmp_release_tas_lock()
[all …]
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dbugprone-spuriously-wake-up-functions.cpp119 std::unique_lock<std::mutex> lk(m); in consume_list_element() local
122 condition.wait(lk); in consume_list_element()
127 condition.wait(lk); in consume_list_element()
131 condition.wait(lk); in consume_list_element()
135 condition.wait(lk); in consume_list_element()
140 condition.wait(lk); in consume_list_element()
146 condition.wait(lk); in consume_list_element()
152 condition.wait(lk); in consume_list_element()
158 condition.wait_for(lk, dur); in consume_list_element()
162 condition.wait_for(lk, dur, [] { return 1; }); in consume_list_element()
[all …]
/external/llvm-project/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/
Dtry_lock.pass.cpp41 std::shared_lock<mutex> lk(m, std::defer_lock); in main() local
42 assert(lk.try_lock() == true); in main()
44 assert(lk.owns_lock() == true); in main()
48 TEST_IGNORE_NODISCARD lk.try_lock(); in main()
56 lk.unlock(); in main()
57 assert(lk.try_lock() == false); in main()
59 assert(lk.owns_lock() == false); in main()
60 lk.release(); in main()
64 TEST_IGNORE_NODISCARD lk.try_lock(); in main()
Dtry_lock_for.pass.cpp44 std::shared_lock<mutex> lk(m, std::defer_lock); in main() local
45 assert(lk.try_lock_for(ms(5)) == true); in main()
47 assert(lk.owns_lock() == true); in main()
51 TEST_IGNORE_NODISCARD lk.try_lock_for(ms(5)); in main()
59 lk.unlock(); in main()
60 assert(lk.try_lock_for(ms(5)) == false); in main()
62 assert(lk.owns_lock() == false); in main()
63 lk.release(); in main()
67 TEST_IGNORE_NODISCARD lk.try_lock_for(ms(5)); in main()
Dtry_lock_until.pass.cpp44 std::shared_lock<mutex> lk(m, std::defer_lock); in main() local
45 assert(lk.try_lock_until(Clock::now()) == true); in main()
47 assert(lk.owns_lock() == true); in main()
51 TEST_IGNORE_NODISCARD lk.try_lock_until(Clock::now()); in main()
59 lk.unlock(); in main()
60 assert(lk.try_lock_until(Clock::now()) == false); in main()
62 assert(lk.owns_lock() == false); in main()
63 lk.release(); in main()
67 TEST_IGNORE_NODISCARD lk.try_lock_until(Clock::now()); in main()
/external/llvm-project/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
Dtry_lock.pass.cpp40 std::unique_lock<mutex> lk(m, std::defer_lock); in main() local
41 assert(lk.try_lock() == true); in main()
43 assert(lk.owns_lock() == true); in main()
47 TEST_IGNORE_NODISCARD lk.try_lock(); in main()
55 lk.unlock(); in main()
56 assert(lk.try_lock() == false); in main()
58 assert(lk.owns_lock() == false); in main()
59 lk.release(); in main()
63 TEST_IGNORE_NODISCARD lk.try_lock(); in main()
Dtry_lock_for.pass.cpp43 std::unique_lock<mutex> lk(m, std::defer_lock); in main() local
44 assert(lk.try_lock_for(ms(5)) == true); in main()
46 assert(lk.owns_lock() == true); in main()
50 TEST_IGNORE_NODISCARD lk.try_lock_for(ms(5)); in main()
58 lk.unlock(); in main()
59 assert(lk.try_lock_for(ms(5)) == false); in main()
61 assert(lk.owns_lock() == false); in main()
62 lk.release(); in main()
66 TEST_IGNORE_NODISCARD lk.try_lock_for(ms(5)); in main()
Dtry_lock_until.pass.cpp43 std::unique_lock<mutex> lk(m, std::defer_lock); in main() local
44 assert(lk.try_lock_until(Clock::now()) == true); in main()
46 assert(lk.owns_lock() == true); in main()
50 TEST_IGNORE_NODISCARD lk.try_lock_until(Clock::now()); in main()
58 lk.unlock(); in main()
59 assert(lk.try_lock_until(Clock::now()) == false); in main()
61 assert(lk.owns_lock() == false); in main()
62 lk.release(); in main()
66 TEST_IGNORE_NODISCARD lk.try_lock_until(Clock::now()); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/
Dtry_lock.pass.cpp40 std::shared_lock<mutex> lk(m, std::defer_lock); in main() local
41 assert(lk.try_lock() == true); in main()
43 assert(lk.owns_lock() == true); in main()
47 TEST_IGNORE_NODISCARD lk.try_lock(); in main()
55 lk.unlock(); in main()
56 assert(lk.try_lock() == false); in main()
58 assert(lk.owns_lock() == false); in main()
59 lk.release(); in main()
63 TEST_IGNORE_NODISCARD lk.try_lock(); in main()
Dtry_lock_for.pass.cpp45 std::shared_lock<mutex> lk(m, std::defer_lock); in main() local
46 assert(lk.try_lock_for(ms(5)) == true); in main()
48 assert(lk.owns_lock() == true); in main()
52 TEST_IGNORE_NODISCARD lk.try_lock_for(ms(5)); in main()
60 lk.unlock(); in main()
61 assert(lk.try_lock_for(ms(5)) == false); in main()
63 assert(lk.owns_lock() == false); in main()
64 lk.release(); in main()
68 TEST_IGNORE_NODISCARD lk.try_lock_for(ms(5)); in main()
Dtry_lock_until.pass.cpp45 std::shared_lock<mutex> lk(m, std::defer_lock); in main() local
46 assert(lk.try_lock_until(Clock::now()) == true); in main()
48 assert(lk.owns_lock() == true); in main()
52 TEST_IGNORE_NODISCARD lk.try_lock_until(Clock::now()); in main()
60 lk.unlock(); in main()
61 assert(lk.try_lock_until(Clock::now()) == false); in main()
63 assert(lk.owns_lock() == false); in main()
64 lk.release(); in main()
68 TEST_IGNORE_NODISCARD lk.try_lock_until(Clock::now()); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
Dtry_lock.pass.cpp39 std::unique_lock<mutex> lk(m, std::defer_lock); in main() local
40 assert(lk.try_lock() == true); in main()
42 assert(lk.owns_lock() == true); in main()
46 TEST_IGNORE_NODISCARD lk.try_lock(); in main()
54 lk.unlock(); in main()
55 assert(lk.try_lock() == false); in main()
57 assert(lk.owns_lock() == false); in main()
58 lk.release(); in main()
62 TEST_IGNORE_NODISCARD lk.try_lock(); in main()
Dtry_lock_for.pass.cpp44 std::unique_lock<mutex> lk(m, std::defer_lock); in main() local
45 assert(lk.try_lock_for(ms(5)) == true); in main()
47 assert(lk.owns_lock() == true); in main()
51 TEST_IGNORE_NODISCARD lk.try_lock_for(ms(5)); in main()
59 lk.unlock(); in main()
60 assert(lk.try_lock_for(ms(5)) == false); in main()
62 assert(lk.owns_lock() == false); in main()
63 lk.release(); in main()
67 TEST_IGNORE_NODISCARD lk.try_lock_for(ms(5)); in main()
Dtry_lock_until.pass.cpp44 std::unique_lock<mutex> lk(m, std::defer_lock); in main() local
45 assert(lk.try_lock_until(Clock::now()) == true); in main()
47 assert(lk.owns_lock() == true); in main()
51 TEST_IGNORE_NODISCARD lk.try_lock_until(Clock::now()); in main()
59 lk.unlock(); in main()
60 assert(lk.try_lock_until(Clock::now()) == false); in main()
62 assert(lk.owns_lock() == false); in main()
63 lk.release(); in main()
67 TEST_IGNORE_NODISCARD lk.try_lock_until(Clock::now()); in main()
/external/drm_hwcomposer/utils/
DWorker.cpp33 std::lock_guard<std::mutex> lk(mutex_); in InitWorker() local
46 std::unique_lock<std::mutex> lk(mutex_); in Exit() local
49 lk.unlock(); in Exit()
61 std::unique_lock<std::mutex> lk(mutex_, std::adopt_lock); in WaitForSignalOrExitLocked() local
63 cond_.wait(lk); in WaitForSignalOrExitLocked()
65 cond_.wait_for(lk, std::chrono::nanoseconds(max_nanoseconds))) { in WaitForSignalOrExitLocked()
74 lk.release(); in WaitForSignalOrExitLocked()
83 std::unique_lock<std::mutex> lk(mutex_, std::defer_lock); in InternalRoutine() local
86 lk.lock(); in InternalRoutine()
89 lk.unlock(); in InternalRoutine()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/
Drelease.pass.cpp37 std::shared_lock<mutex> lk(m); in main() local
38 assert(lk.mutex() == &m); in main()
39 assert(lk.owns_lock() == true); in main()
42 assert(lk.release() == &m); in main()
43 assert(lk.mutex() == nullptr); in main()
44 assert(lk.owns_lock() == false); in main()
47 static_assert(noexcept(lk.release()), "release must be noexcept"); in main()
/external/llvm-project/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/
Drelease.pass.cpp38 std::shared_lock<mutex> lk(m); in main() local
39 assert(lk.mutex() == &m); in main()
40 assert(lk.owns_lock() == true); in main()
43 assert(lk.release() == &m); in main()
44 assert(lk.mutex() == nullptr); in main()
45 assert(lk.owns_lock() == false); in main()
48 static_assert(noexcept(lk.release()), "release must be noexcept"); in main()
/external/llvm-project/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/
Dmutex_try_to_lock.pass.cpp38 std::unique_lock<std::mutex> lk(m, std::try_to_lock); in f() local
39 assert(lk.owns_lock() == false); in f()
42 std::unique_lock<std::mutex> lk(m, std::try_to_lock); in f() local
43 assert(lk.owns_lock() == false); in f()
46 std::unique_lock<std::mutex> lk(m, std::try_to_lock); in f() local
47 assert(lk.owns_lock() == false); in f()
51 std::unique_lock<std::mutex> lk(m, std::try_to_lock); in f() local
52 if (lk.owns_lock()) in f()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/
Dmutex_try_to_lock.pass.cpp35 std::unique_lock<std::mutex> lk(m, std::try_to_lock); in f() local
36 assert(lk.owns_lock() == false); in f()
39 std::unique_lock<std::mutex> lk(m, std::try_to_lock); in f() local
40 assert(lk.owns_lock() == false); in f()
43 std::unique_lock<std::mutex> lk(m, std::try_to_lock); in f() local
44 assert(lk.owns_lock() == false); in f()
48 std::unique_lock<std::mutex> lk(m, std::try_to_lock); in f() local
49 if (lk.owns_lock()) in f()
/external/llvm-project/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/
Dmutex_try_to_lock.pass.cpp46 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f() local
47 assert(lk.owns_lock() == false); in f()
50 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f() local
51 assert(lk.owns_lock() == false); in f()
54 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f() local
55 assert(lk.owns_lock() == false); in f()
59 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f() local
60 if (lk.owns_lock()) in f()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/
Dmutex_try_to_lock.pass.cpp39 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f() local
40 assert(lk.owns_lock() == false); in f()
43 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f() local
44 assert(lk.owns_lock() == false); in f()
47 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f() local
48 assert(lk.owns_lock() == false); in f()
52 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f() local
53 if (lk.owns_lock()) in f()
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvarany/
Dwait_for.pass.cpp42 L1 lk(m0); in f() local
48 cv.wait_for(lk, milliseconds(250)) == std::cv_status::no_timeout) in f()
67 L1 lk(m0); in main() local
71 cv.wait(lk); in main()
74 lk.unlock(); in main()
81 L1 lk(m0); in main() local
85 cv.wait(lk); in main()
87 lk.unlock(); in main()
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvar/
Dwait_for.pass.cpp41 std::unique_lock<std::mutex> lk(mut); in f() local
47 cv.wait_for(lk, milliseconds(250)) == std::cv_status::no_timeout) in f()
66 std::unique_lock<std::mutex>lk(mut); in main() local
70 cv.wait(lk); in main()
73 lk.unlock(); in main()
80 std::unique_lock<std::mutex>lk(mut); in main() local
84 cv.wait(lk); in main()
86 lk.unlock(); in main()

123456789