Home
last modified time | relevance | path

Searched refs:shared_lock (Results 1 – 25 of 54) sorted by relevance

123

/external/libcxx/include/
Dshared_mutex76 class shared_lock
82 shared_lock() noexcept;
83 explicit shared_lock(mutex_type& m); // blocking
84 shared_lock(mutex_type& m, defer_lock_t) noexcept;
85 shared_lock(mutex_type& m, try_to_lock_t);
86 shared_lock(mutex_type& m, adopt_lock_t);
88 shared_lock(mutex_type& m,
91 shared_lock(mutex_type& m,
93 ~shared_lock();
95 shared_lock(shared_lock const&) = delete;
[all …]
/external/llvm-project/libcxx/include/
Dshared_mutex75 class shared_lock
81 shared_lock() noexcept;
82 explicit shared_lock(mutex_type& m); // blocking
83 shared_lock(mutex_type& m, defer_lock_t) noexcept;
84 shared_lock(mutex_type& m, try_to_lock_t);
85 shared_lock(mutex_type& m, adopt_lock_t);
87 shared_lock(mutex_type& m,
90 shared_lock(mutex_type& m,
92 ~shared_lock();
94 shared_lock(shared_lock const&) = delete;
[all …]
/external/llvm-project/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/
Dmove_ctor.pass.cpp34 std::shared_lock<M> lk0(m); in main()
35 std::shared_lock<M> lk = std::move(lk0); in main()
44 std::shared_lock<M> lk0(m); in main()
45 std::shared_lock<M> lk = std::move(lk0); in main()
Dmove_assign.pass.cpp36 std::shared_lock<M> lk0(m0); in main()
37 std::shared_lock<M> lk1(m1); in main()
48 std::shared_lock<M> lk0(m0); in main()
49 std::shared_lock<M> lk1(m1); in main()
Dmutex_try_to_lock.pass.cpp46 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f()
50 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f()
54 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f()
59 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f()
Dmutex.pass.cpp61 std::shared_lock<std::shared_timed_mutex> ul(m); in f()
73 std::shared_lock<std::shared_timed_mutex> ul(m); in g()
105 std::shared_lock sl(m); in main()
106 static_assert((std::is_same<decltype(sl), std::shared_lock<decltype(m)>>::value), "" ); in main()
Dcopy_ctor.compile.fail.cpp22 std::shared_lock<std::shared_timed_mutex> lk0(m); in main()
23 std::shared_lock<std::shared_timed_mutex> lk = lk0; in main()
Dcopy_assign.compile.fail.cpp23 std::shared_lock<std::shared_timed_mutex> lk0(m0); in main()
24 std::shared_lock<std::shared_timed_mutex> lk1(m1); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/
Dmove_ctor.pass.cpp28 std::shared_lock<M> lk0(m); in main()
29 std::shared_lock<M> lk = std::move(lk0); in main()
38 std::shared_lock<M> lk0(m); in main()
39 std::shared_lock<M> lk = std::move(lk0); in main()
Dmove_assign.pass.cpp30 std::shared_lock<M> lk0(m0); in main()
31 std::shared_lock<M> lk1(m1); in main()
42 std::shared_lock<M> lk0(m0); in main()
43 std::shared_lock<M> lk1(m1); in main()
Dmutex_try_to_lock.pass.cpp39 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f()
43 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f()
47 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f()
52 std::shared_lock<std::shared_timed_mutex> lk(m, std::try_to_lock); in f()
Dmutex.pass.cpp56 std::shared_lock<std::shared_timed_mutex> ul(m); in f()
68 std::shared_lock<std::shared_timed_mutex> ul(m); in g()
100 std::shared_lock sl(m); in main()
101 static_assert((std::is_same<decltype(sl), std::shared_lock<decltype(m)>>::value), "" ); in main()
Dcopy_ctor.fail.cpp23 std::shared_lock<std::shared_timed_mutex> lk0(m); in main()
24 std::shared_lock<std::shared_timed_mutex> lk = lk0; in main()
Dcopy_assign.fail.cpp24 std::shared_lock<std::shared_timed_mutex> lk0(m0); in main()
25 std::shared_lock<std::shared_timed_mutex> lk1(m1); in main()
/external/icing/icing/absl_ports/
Dmutex.h61 class ICING_SCOPED_LOCKABLE shared_lock {
63 explicit shared_lock(shared_mutex* mu) ICING_SHARED_LOCK_FUNCTION(mu) in shared_lock() function
65 ~shared_lock() ICING_UNLOCK_FUNCTION() = default;
68 std::shared_lock<shared_mutex> lock_;
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.obs/
Dop_bool.pass.cpp26 std::shared_lock<std::shared_timed_mutex> lk0; in main()
28 std::shared_lock<std::shared_timed_mutex> lk1(m); in main()
Downs_lock.pass.cpp26 std::shared_lock<std::shared_timed_mutex> lk0; in main()
28 std::shared_lock<std::shared_timed_mutex> lk1(m); in main()
Dmutex.pass.cpp26 std::shared_lock<std::shared_timed_mutex> lk0; in main()
28 std::shared_lock<std::shared_timed_mutex> lk1(m); in main()
/external/llvm-project/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.obs/
Dop_bool.pass.cpp32 std::shared_lock<std::shared_timed_mutex> lk0; in main()
34 std::shared_lock<std::shared_timed_mutex> lk1(m); in main()
Downs_lock.pass.cpp32 std::shared_lock<std::shared_timed_mutex> lk0; in main()
34 std::shared_lock<std::shared_timed_mutex> lk1(m); in main()
Dmutex.pass.cpp32 std::shared_lock<std::shared_timed_mutex> lk0; in main()
34 std::shared_lock<std::shared_timed_mutex> lk1(m); in main()
/external/llvm-project/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/
Dnonmember_swap.pass.cpp34 std::shared_lock<mutex> lk1(m); in main()
35 std::shared_lock<mutex> lk2; in main()
Dmember_swap.pass.cpp33 std::shared_lock<mutex> lk1(m); in main()
34 std::shared_lock<mutex> lk2; in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/
Dmember_swap.pass.cpp32 std::shared_lock<mutex> lk1(m); in main()
33 std::shared_lock<mutex> lk2; in main()
Dnonmember_swap.pass.cpp33 std::shared_lock<mutex> lk1(m); in main()
34 std::shared_lock<mutex> lk2; in main()

123