Home
last modified time | relevance | path

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

/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/tensorflow/tensorflow/core/kernels/
Dmutex_ops.cc75 std::shared_ptr<LockReleaser> shared_lock; member
78 : shared_lock(std::forward<decltype(lock)>(lock)) { in SharedLockReleaser()
79 VLOG(3) << "Creating shared_ptr of " << shared_lock.get() in SharedLockReleaser()
80 << " count is: " << shared_lock.use_count(); in SharedLockReleaser()
84 : shared_lock(std::move(rhs.shared_lock)) { in SharedLockReleaser()
85 VLOG(3) << "Moving SharedLockReleaser of " << shared_lock.get() in SharedLockReleaser()
86 << " count is: " << shared_lock.use_count(); in SharedLockReleaser()
90 : shared_lock(rhs.shared_lock) { in SharedLockReleaser()
91 VLOG(3) << "Copying SharedLockReleaser of " << shared_lock.get() in SharedLockReleaser()
92 << " count is: " << shared_lock.use_count(); in SharedLockReleaser()
[all …]
/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()
Dmutex_duration.pass.cpp53 std::shared_lock<std::shared_timed_mutex> lk(m, WaitTime + Tolerance); in f1()
63 std::shared_lock<std::shared_timed_mutex> lk(m, WaitTime); in f2()
Dmutex_time_point.pass.cpp52 std::shared_lock<std::shared_timed_mutex> lk(m, Clock::now() + WaitTime + Tolerance); in f1()
62 std::shared_lock<std::shared_timed_mutex> lk(m, Clock::now() + WaitTime); in f2()
Ddefault.pass.cpp24 std::shared_lock<std::shared_timed_mutex> ul; in main()
/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/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()
Drelease.pass.cpp37 std::shared_lock<mutex> lk(m); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/
Dtypes.pass.cpp29 static_assert((std::is_same<std::shared_lock<std::mutex>::mutex_type, in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/
Dunlock.pass.cpp36 std::shared_lock<mutex> lk(m); in main()
Dtry_lock.pass.cpp40 std::shared_lock<mutex> lk(m, std::defer_lock); in main()
Dtry_lock_for.pass.cpp45 std::shared_lock<mutex> lk(m, std::defer_lock); in main()
Dtry_lock_until.pass.cpp45 std::shared_lock<mutex> lk(m, std::defer_lock); in main()
Dlock.pass.cpp49 std::shared_lock<std::shared_timed_mutex> lk(m, std::defer_lock); in f()