Home
last modified time | relevance | path

Searched refs:shared_timed_mutex (Results 1 – 25 of 29) sorted by relevance

12

/external/libcxx/src/
Dshared_mutex.cpp107 shared_timed_mutex::shared_timed_mutex() : __base() {} in shared_timed_mutex() function in shared_timed_mutex
108 void shared_timed_mutex::lock() { return __base.lock(); } in lock()
109 bool shared_timed_mutex::try_lock() { return __base.try_lock(); } in try_lock()
110 void shared_timed_mutex::unlock() { return __base.unlock(); } in unlock()
111 void shared_timed_mutex::lock_shared() { return __base.lock_shared(); } in lock_shared()
112 bool shared_timed_mutex::try_lock_shared() { return __base.try_lock_shared(); } in try_lock_shared()
113 void shared_timed_mutex::unlock_shared() { return __base.unlock_shared(); } in unlock_shared()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/
Dcopy_assign.fail.cpp20 std::shared_timed_mutex m0;
21 std::shared_timed_mutex m1;
28 std::shared_lock<std::shared_timed_mutex> lk0(m0); in main()
29 std::shared_lock<std::shared_timed_mutex> lk1(m1); in main()
Dmutex_try_to_lock.pass.cpp26 std::shared_timed_mutex m;
38 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f()
42 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f()
46 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f()
51 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f()
Dmove_assign.pass.cpp23 std::shared_timed_mutex m0;
24 std::shared_timed_mutex m1;
31 std::shared_lock<std::shared_timed_mutex> lk0(m0); in main()
32 std::shared_lock<std::shared_timed_mutex> lk1(m1); in main()
Dcopy_ctor.fail.cpp19 std::shared_timed_mutex m;
25 std::shared_lock<std::shared_timed_mutex> lk0(m); in main()
26 std::shared_lock<std::shared_timed_mutex> lk = lk0; in main()
Dmove_ctor.pass.cpp22 std::shared_timed_mutex m;
28 std::shared_lock<std::shared_timed_mutex> lk0(m); in main()
29 std::shared_lock<std::shared_timed_mutex> lk = std::move(lk0); in main()
Dmutex.pass.cpp26 std::shared_timed_mutex m;
39 std::shared_lock<std::shared_timed_mutex> ul(m); in f()
51 std::shared_lock<std::shared_timed_mutex> ul(m); in g()
Dmutex_duration.pass.cpp27 std::shared_timed_mutex m;
38 std::shared_lock<std::shared_timed_mutex> lk(m, ms(300)); in f1()
48 std::shared_lock<std::shared_timed_mutex> lk(m, ms(250)); in f2()
Dmutex_time_point.pass.cpp27 std::shared_timed_mutex m;
38 std::shared_lock<std::shared_timed_mutex> lk(m, Clock::now() + ms(300)); in f1()
48 std::shared_lock<std::shared_timed_mutex> lk(m, Clock::now() + ms(250)); in f2()
Dmutex_defer_lock.pass.cpp24 std::shared_timed_mutex m; in main()
25 std::shared_lock<std::shared_timed_mutex> lk(m, std::defer_lock); in main()
Dmutex_adopt_lock.pass.cpp24 std::shared_timed_mutex m; in main()
26 std::shared_lock<std::shared_timed_mutex> lk(m, std::adopt_lock); in main()
Ddefault.pass.cpp24 std::shared_lock<std::shared_timed_mutex> ul; in main()
/external/libcxx/include/
Dshared_mutex45 class shared_timed_mutex
48 shared_timed_mutex();
49 ~shared_timed_mutex();
51 shared_timed_mutex(const shared_timed_mutex&) = delete;
52 shared_timed_mutex& operator=(const shared_timed_mutex&) = delete;
202 class _LIBCPP_TYPE_VIS shared_timed_mutex
206 shared_timed_mutex();
207 _LIBCPP_INLINE_VISIBILITY ~shared_timed_mutex() = default;
209 shared_timed_mutex(const shared_timed_mutex&) = delete;
210 shared_timed_mutex& operator=(const shared_timed_mutex&) = delete;
[all …]
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.obs/
Dop_bool.pass.cpp23 std::shared_timed_mutex m;
30 std::shared_lock<std::shared_timed_mutex> lk0; in main()
32 std::shared_lock<std::shared_timed_mutex> lk1(m); in main()
Downs_lock.pass.cpp23 std::shared_timed_mutex m;
30 std::shared_lock<std::shared_timed_mutex> lk0; in main()
32 std::shared_lock<std::shared_timed_mutex> lk1(m); in main()
Dmutex.pass.cpp23 std::shared_timed_mutex m;
30 std::shared_lock<std::shared_timed_mutex> lk0; in main()
32 std::shared_lock<std::shared_timed_mutex> lk1(m); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/
Dcopy.fail.cpp21 std::shared_timed_mutex m0; in main()
22 std::shared_timed_mutex m1(m0); in main()
Dassign.fail.cpp21 std::shared_timed_mutex m0; in main()
22 std::shared_timed_mutex m1; in main()
Ddefault.pass.cpp23 std::shared_timed_mutex m; in main()
Dlock.pass.cpp24 std::shared_timed_mutex m;
Dtry_lock.pass.cpp24 std::shared_timed_mutex m;
Dtry_lock_until_deadlock_bug.pass.cpp25 std::shared_timed_mutex m;
Dtry_lock_shared.pass.cpp25 std::shared_timed_mutex m;
Dtry_lock_for.pass.cpp25 std::shared_timed_mutex m;
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/
Dlock.pass.cpp26 std::shared_timed_mutex m;
36 std::shared_lock<std::shared_timed_mutex> lk(m, std::defer_lock); in f()

12