Home
last modified time | relevance | path

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

12345

/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);
530 xmlLinkPtr lk; in xmlTextWriterStartDocument() local
539 lk = xmlListFront(writer->nodes); in xmlTextWriterStartDocument()
540 if ((lk != NULL) && (xmlLinkGetData(lk) != NULL)) { in xmlTextWriterStartDocument()
649 xmlLinkPtr lk; in xmlTextWriterEndDocument() local
659 while ((lk = xmlListFront(writer->nodes)) != NULL) { in xmlTextWriterEndDocument()
660 p = (xmlTextWriterStackEntry *) xmlLinkGetData(lk); in xmlTextWriterEndDocument()
735 xmlLinkPtr lk; in xmlTextWriterStartComment() local
745 lk = xmlListFront(writer->nodes); in xmlTextWriterStartComment()
[all …]
/external/valgrind/helgrind/
Dhg_main.c223 static void del_LockN ( Lock* lk ) in del_LockN() argument
225 tl_assert(HG_(is_sane_LockN)(lk)); in del_LockN()
226 tl_assert(lk->hbso); in del_LockN()
227 libhb_so_dealloc(lk->hbso); in del_LockN()
228 if (lk->heldBy) in del_LockN()
229 VG_(deleteBag)( lk->heldBy ); in del_LockN()
231 if (lk == admin_locks) { in del_LockN()
232 tl_assert(lk->admin_prev == NULL); in del_LockN()
233 if (lk->admin_next) in del_LockN()
234 lk->admin_next->admin_prev = NULL; in del_LockN()
[all …]
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
Dtry_lock.pass.cpp37 std::unique_lock<mutex> lk(m, std::defer_lock); in main() local
38 assert(lk.try_lock() == true); in main()
40 assert(lk.owns_lock() == true); in main()
43 lk.try_lock(); in main()
50 lk.unlock(); in main()
51 assert(lk.try_lock() == false); in main()
53 assert(lk.owns_lock() == false); in main()
54 lk.release(); in main()
57 lk.try_lock(); in main()
Dtry_lock_for.pass.cpp42 std::unique_lock<mutex> lk(m, std::defer_lock); in main() local
43 assert(lk.try_lock_for(ms(5)) == true); in main()
45 assert(lk.owns_lock() == true); in main()
48 lk.try_lock_for(ms(5)); in main()
55 lk.unlock(); in main()
56 assert(lk.try_lock_for(ms(5)) == false); in main()
58 assert(lk.owns_lock() == false); in main()
59 lk.release(); in main()
62 lk.try_lock_for(ms(5)); in main()
Dtry_lock_until.pass.cpp42 std::unique_lock<mutex> lk(m, std::defer_lock); in main() local
43 assert(lk.try_lock_until(Clock::now()) == true); in main()
45 assert(lk.owns_lock() == true); in main()
48 lk.try_lock_until(Clock::now()); in main()
55 lk.unlock(); in main()
56 assert(lk.try_lock_until(Clock::now()) == false); in main()
58 assert(lk.owns_lock() == false); in main()
59 lk.release(); in main()
62 lk.try_lock_until(Clock::now()); in main()
Dlock.pass.cpp33 std::unique_lock<std::mutex> lk(m, std::defer_lock); in f() local
35 lk.lock(); in f()
37 assert(lk.owns_lock() == true); in f()
42 lk.lock(); in f()
49 lk.unlock(); in f()
50 lk.release(); in f()
53 lk.lock(); in f()
Dunlock.pass.cpp33 std::unique_lock<mutex> lk(m); in main() local
34 lk.unlock(); in main()
36 assert(lk.owns_lock() == false); in main()
39 lk.unlock(); in main()
46 lk.release(); in main()
49 lk.unlock(); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/
Dtry_lock.pass.cpp42 std::shared_lock<mutex> lk(m, std::defer_lock); in main() local
43 assert(lk.try_lock() == true); in main()
45 assert(lk.owns_lock() == true); in main()
48 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()
62 lk.try_lock(); in main()
Dtry_lock_for.pass.cpp47 std::shared_lock<mutex> lk(m, std::defer_lock); in main() local
48 assert(lk.try_lock_for(ms(5)) == true); in main()
50 assert(lk.owns_lock() == true); in main()
53 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()
67 lk.try_lock_for(ms(5)); in main()
Dtry_lock_until.pass.cpp47 std::shared_lock<mutex> lk(m, std::defer_lock); in main() local
48 assert(lk.try_lock_until(Clock::now()) == true); in main()
50 assert(lk.owns_lock() == true); in main()
53 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()
67 lk.try_lock_until(Clock::now()); in main()
Dunlock.pass.cpp38 std::shared_lock<mutex> lk(m); in main() local
39 lk.unlock(); in main()
41 assert(lk.owns_lock() == false); in main()
44 lk.unlock(); in main()
51 lk.release(); in main()
54 lk.unlock(); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/
Drelease.pass.cpp41 std::shared_lock<mutex> lk(m); in main() local
42 assert(lk.mutex() == &m); in main()
43 assert(lk.owns_lock() == true); in main()
46 assert(lk.release() == &m); in main()
47 assert(lk.mutex() == nullptr); in main()
48 assert(lk.owns_lock() == false); in main()
51 static_assert(noexcept(lk.release()), "release must be noexcept"); in main()
/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/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/
Dmutex_try_to_lock.pass.cpp38 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f() local
39 assert(lk.owns_lock() == false); in f()
42 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f() local
43 assert(lk.owns_lock() == false); in f()
46 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f() local
47 assert(lk.owns_lock() == false); in f()
51 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f() local
52 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()
Dwait_for_pred.pass.cpp52 L1 lk(m0); in f() local
57 bool r = cv.wait_for(lk, milliseconds(250), Pred(test2)); in f()
75 L1 lk(m0); in main() local
79 cv.wait(lk); in main()
82 lk.unlock(); in main()
89 L1 lk(m0); in main() local
93 cv.wait(lk); in main()
95 lk.unlock(); in main()
Dwait_until.pass.cpp57 L1 lk(m0); in f() local
63 while (test2 == 0 && cv.wait_until(lk, t) == std::cv_status::no_timeout) in f()
82 L1 lk(m0); in main() local
86 cv.wait(lk); in main()
89 lk.unlock(); in main()
96 L1 lk(m0); in main() local
100 cv.wait(lk); in main()
102 lk.unlock(); in main()
Dnotify_one.pass.cpp36 L1 lk(m0); in f1() local
39 cv.wait(lk); in f1()
46 L1 lk(m0); in f2() local
49 cv.wait(lk); in f2()
60 L1 lk(m0); in main() local
67 L1 lk(m0); in main() local
84 L1 lk(m0); in main() local
Dwait_until_pred.pass.cpp68 L1 lk(m0); in f() local
74 bool r = cv.wait_until(lk, t, Pred(test2)); in f()
94 L1 lk(m0); in main() local
98 cv.wait(lk); in main()
101 lk.unlock(); in main()
108 L1 lk(m0); in main() local
112 cv.wait(lk); in main()
114 lk.unlock(); in main()
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvar/
Dwait_for.pass.cpp39 std::unique_lock<std::mutex> lk(mut); in f() local
45 cv.wait_for(lk, milliseconds(250)) == std::cv_status::no_timeout) in f()
64 std::unique_lock<std::mutex>lk(mut); in main() local
68 cv.wait(lk); in main()
71 lk.unlock(); in main()
78 std::unique_lock<std::mutex>lk(mut); in main() local
82 cv.wait(lk); in main()
84 lk.unlock(); in main()
Dwait_for_pred.pass.cpp49 std::unique_lock<std::mutex> lk(mut); in f() local
54 bool r = cv.wait_for(lk, milliseconds(250), Pred(test2)); in f()
72 std::unique_lock<std::mutex>lk(mut); in main() local
76 cv.wait(lk); in main()
79 lk.unlock(); in main()
86 std::unique_lock<std::mutex>lk(mut); in main() local
90 cv.wait(lk); in main()
92 lk.unlock(); in main()
Dwait_until.pass.cpp54 std::unique_lock<std::mutex> lk(mut); in f() local
60 while (test2 == 0 && cv.wait_until(lk, t) == std::cv_status::no_timeout) in f()
79 std::unique_lock<std::mutex>lk(mut); in main() local
83 cv.wait(lk); in main()
86 lk.unlock(); in main()
93 std::unique_lock<std::mutex>lk(mut); in main() local
97 cv.wait(lk); in main()
99 lk.unlock(); in main()
/external/libcxx/src/
Dcondition_variable.cpp39 condition_variable::wait(unique_lock<mutex>& lk) _NOEXCEPT in wait() argument
41 if (!lk.owns_lock()) in wait()
44 int ec = pthread_cond_wait(&__cv_, lk.mutex()->native_handle()); in wait()
50 condition_variable::__do_timed_wait(unique_lock<mutex>& lk, in __do_timed_wait() argument
54 if (!lk.owns_lock()) in __do_timed_wait()
74 int ec = pthread_cond_timedwait(&__cv_, lk.mutex()->native_handle(), &ts); in __do_timed_wait()
80 notify_all_at_thread_exit(condition_variable& cond, unique_lock<mutex> lk) in notify_all_at_thread_exit() argument
82 __thread_local_data()->notify_all_at_thread_exit(&cond, lk.release()); in notify_all_at_thread_exit()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/
Drelease.pass.cpp36 std::unique_lock<mutex> lk(m); in main() local
37 assert(lk.mutex() == &m); in main()
38 assert(lk.owns_lock() == true); in main()
41 assert(lk.release() == &m); in main()
42 assert(lk.mutex() == nullptr); in main()
43 assert(lk.owns_lock() == false); in main()

12345