HomeSort by relevance Sort by last modified time
    Searched full:mutex (Results 276 - 300 of 3911) sorted by null

<<11121314151617181920>>

  /external/valgrind/drd/tests/
trylock.c 22 pthread_mutex_t mutex; local
63 r = pthread_mutex_init(&mutex, NULL); assert(r == 0);
64 fprintf(stderr, "Locking mutex via pthread_mutex_trylock().\n");
65 r = pthread_mutex_trylock(&mutex); assert(r == 0);
66 r = pthread_mutex_unlock(&mutex); assert(r == 0);
67 fprintf(stderr, "Locking mutex via pthread_mutex_lock().\n");
68 r = pthread_mutex_lock(&mutex); assert(r == 0);
69 r = pthread_mutex_unlock(&mutex); assert(r == 0);
70 fprintf(stderr, "Locking mutex via pthread_mutex_timedlock().\n");
72 r = pthread_mutex_timedlock(&mutex, &abs_timeout); assert(r == 0)
    [all...]
  /frameworks/rs/
rsMutex.h 26 class Mutex {
28 Mutex();
29 ~Mutex();
  /build/kati/
stats.cc 19 #include <mutex>
30 mutex g_mu;
38 unique_lock<mutex> lock(g_mu);
45 unique_lock<mutex> lock(mu_);
52 unique_lock<mutex> lock(mu_);
60 unique_lock<mutex> lock(mu_);
  /external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
try_lock.pass.cpp 12 // <mutex>
14 // template <class Mutex> class unique_lock;
18 #include <mutex>
23 struct mutex struct
33 mutex m;
37 std::unique_lock<mutex> lk(m, std::defer_lock);
unlock.pass.cpp 12 // <mutex>
14 // template <class Mutex> class unique_lock;
18 #include <mutex>
23 struct mutex struct
29 mutex m;
33 std::unique_lock<mutex> lk(m);
  /frameworks/av/drm/mediadrm/plugins/clearkey/
SessionLibrary.cpp 27 using android::Mutex;
32 Mutex SessionLibrary::sSingletonLock;
36 Mutex::Autolock lock(sSingletonLock);
47 Mutex::Autolock lock(mSessionsLock);
62 Mutex::Autolock lock(mSessionsLock);
67 Mutex::Autolock lock(mSessionsLock);\
  /frameworks/native/libs/gui/tests/
DisconnectWaiter.h 23 #include <utils/Mutex.h>
40 Mutex::Autolock lock(mMutex);
48 Mutex::Autolock lock(mMutex);
54 Mutex::Autolock lock(mMutex);
63 Mutex::Autolock lock(mMutex);
69 Mutex mMutex;
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
try_lock.pass.cpp 10 // <mutex>
12 // template <class Mutex> class unique_lock;
16 #include <mutex>
21 struct mutex struct
31 mutex m;
35 std::unique_lock<mutex> lk(m, std::defer_lock);
unlock.pass.cpp 10 // <mutex>
12 // template <class Mutex> class unique_lock;
16 #include <mutex>
21 struct mutex struct
27 mutex m;
31 std::unique_lock<mutex> lk(m);
  /hardware/intel/common/libwsbm/src/
wsbm_userpool.c 63 /* Protected by the pool mutex */
68 /* Protected by the buffer mutex */
99 struct _WsbmMutex mutex; member in struct:_WsbmUserPool
127 WSBM_COND_WAIT(&vBuf->event, &buf->mutex);
134 WSBM_MUTEX_UNLOCK(&buf->mutex);
137 WSBM_MUTEX_LOCK(&buf->mutex);
153 WSBM_MUTEX_UNLOCK(&buf->mutex);
155 WSBM_MUTEX_UNLOCK(&buf->mutex);
174 WSBM_MUTEX_UNLOCK(&p->mutex);
175 WSBM_MUTEX_LOCK(&vBuf->buf.mutex);
    [all...]
  /art/runtime/base/
mutex_test.cc 17 #include "mutex.h"
27 static void AssertDepth(Mutex& mu, uint32_t expected_depth) {
40 Mutex mu("test mutex");
48 // GCC has trouble with our mutex tests, so we have to turn off thread safety analysis.
50 Mutex mu("test mutex");
62 // GCC has trouble with our mutex tests, so we have to turn off thread safety analysis.
64 Mutex mu("test mutex", kDefaultMutexLevel, true)
    [all...]
mutex.cc 17 #include "mutex.h"
27 #include "mutex-inl.h"
34 Mutex* Locks::abort_lock_ = nullptr;
35 Mutex* Locks::alloc_tracker_lock_ = nullptr;
36 Mutex* Locks::allocated_monitor_ids_lock_ = nullptr;
37 Mutex* Locks::allocated_thread_ids_lock_ = nullptr;
40 Mutex* Locks::deoptimization_lock_ = nullptr;
42 Mutex* Locks::instrument_entrypoints_lock_ = nullptr;
43 Mutex* Locks::intern_table_lock_ = nullptr;
44 Mutex* Locks::interpreter_string_init_map_lock_ = nullptr
178 BaseMutex* mutex = *it; local
186 BaseMutex* mutex = *it; local
    [all...]
  /external/compiler-rt/lib/tsan/rtl/
tsan_mutex.h 42 class Mutex {
44 explicit Mutex(MutexType type, StatType stat_type);
45 ~Mutex();
64 Mutex(const Mutex&);
65 void operator = (const Mutex&);
68 typedef GenericScopedLock<Mutex> Lock;
69 typedef GenericScopedReadLock<Mutex> ReadLock;
  /external/dbus/dbus/
dbus-sysdeps-pthread.c 134 _dbus_platform_cmutex_free (DBusCMutex *mutex)
136 PTHREAD_CHECK ("pthread_mutex_destroy", pthread_mutex_destroy (&mutex->lock));
137 dbus_free (mutex);
141 _dbus_platform_rmutex_free (DBusRMutex *mutex)
143 PTHREAD_CHECK ("pthread_mutex_destroy", pthread_mutex_destroy (&mutex->lock));
144 dbus_free (mutex);
148 _dbus_platform_cmutex_lock (DBusCMutex *mutex)
150 PTHREAD_CHECK ("pthread_mutex_lock", pthread_mutex_lock (&mutex->lock));
154 _dbus_platform_rmutex_lock (DBusRMutex *mutex)
156 PTHREAD_CHECK ("pthread_mutex_lock", pthread_mutex_lock (&mutex->lock))
    [all...]
  /external/libcxx/include/
condition_variable 34 void wait(unique_lock<mutex>& lock);
36 void wait(unique_lock<mutex>& lock, Predicate pred);
40 wait_until(unique_lock<mutex>& lock,
45 wait_until(unique_lock<mutex>& lock,
51 wait_for(unique_lock<mutex>& lock,
56 wait_for(unique_lock<mutex>& lock,
64 void notify_all_at_thread_exit(condition_variable& cond, unique_lock<mutex> lk);
125 shared_ptr<mutex> __mut_;
162 : __mut_(make_shared<mutex>()) {}
168 {lock_guard<mutex> __lx(*__mut_);
    [all...]
  /external/libcxx/src/
shared_mutex.cpp 18 // Shared Mutex Base
29 unique_lock<mutex> lk(__mut_);
40 unique_lock<mutex> lk(__mut_);
52 lock_guard<mutex> _(__mut_);
62 unique_lock<mutex> lk(__mut_);
73 unique_lock<mutex> lk(__mut_);
88 lock_guard<mutex> _(__mut_);
105 // Shared Timed Mutex
  /external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/
mutex_try_to_lock.pass.cpp 12 // <mutex>
14 // template <class Mutex> class unique_lock;
18 #include <mutex>
23 std::mutex m;
35 std::unique_lock<std::mutex> lk(m, std::try_to_lock);
39 std::unique_lock<std::mutex> lk(m, std::try_to_lock);
43 std::unique_lock<std::mutex> lk(m, std::try_to_lock);
48 std::unique_lock<std::mutex> lk(m, std::try_to_lock);
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/include/
condition_variable 34 void wait(unique_lock<mutex>& lock);
36 void wait(unique_lock<mutex>& lock, Predicate pred);
40 wait_until(unique_lock<mutex>& lock,
45 wait_until(unique_lock<mutex>& lock,
51 wait_for(unique_lock<mutex>& lock,
56 wait_for(unique_lock<mutex>& lock,
64 void notify_all_at_thread_exit(condition_variable& cond, unique_lock<mutex> lk);
125 shared_ptr<mutex> __mut_;
162 : __mut_(make_shared<mutex>()) {}
168 {lock_guard<mutex> __lx(*__mut_);
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/
mutex_try_to_lock.pass.cpp 10 // <mutex>
12 // template <class Mutex> class unique_lock;
16 #include <mutex>
21 std::mutex m;
33 std::unique_lock<std::mutex> lk(m, std::try_to_lock);
37 std::unique_lock<std::mutex> lk(m, std::try_to_lock);
41 std::unique_lock<std::mutex> lk(m, std::try_to_lock);
46 std::unique_lock<std::mutex> lk(m, std::try_to_lock);
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/include/c++/4.8/
condition_variable 39 #include <mutex> // unique_lock
86 wait(unique_lock<mutex>& __lock);
90 wait(unique_lock<mutex>& __lock, _Predicate __p)
98 wait_until(unique_lock<mutex>& __lock,
104 wait_until(unique_lock<mutex>& __lock,
118 wait_until(unique_lock<mutex>& __lock,
130 wait_for(unique_lock<mutex>& __lock,
136 wait_for(unique_lock<mutex>& __lock,
148 __wait_until_impl(unique_lock<mutex>& __lock,
160 __gthread_cond_timedwait(&_M_cond, __lock.mutex()->native_handle()
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/
condition_variable 39 #include <mutex> // unique_lock
86 wait(unique_lock<mutex>& __lock);
90 wait(unique_lock<mutex>& __lock, _Predicate __p)
98 wait_until(unique_lock<mutex>& __lock,
104 wait_until(unique_lock<mutex>& __lock,
118 wait_until(unique_lock<mutex>& __lock,
130 wait_for(unique_lock<mutex>& __lock,
136 wait_for(unique_lock<mutex>& __lock,
148 __wait_until_impl(unique_lock<mutex>& __lock,
160 __gthread_cond_timedwait(&_M_cond, __lock.mutex()->native_handle()
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/c++/4.8.3/
condition_variable 39 #include <mutex> // unique_lock
86 wait(unique_lock<mutex>& __lock);
90 wait(unique_lock<mutex>& __lock, _Predicate __p)
98 wait_until(unique_lock<mutex>& __lock,
104 wait_until(unique_lock<mutex>& __lock,
118 wait_until(unique_lock<mutex>& __lock,
130 wait_for(unique_lock<mutex>& __lock,
136 wait_for(unique_lock<mutex>& __lock,
148 __wait_until_impl(unique_lock<mutex>& __lock,
160 __gthread_cond_timedwait(&_M_cond, __lock.mutex()->native_handle()
    [all...]
  /prebuilts/ndk/current/sources/cxx-stl/llvm-libc++/libcxx/include/
condition_variable 34 void wait(unique_lock<mutex>& lock);
36 void wait(unique_lock<mutex>& lock, Predicate pred);
40 wait_until(unique_lock<mutex>& lock,
45 wait_until(unique_lock<mutex>& lock,
51 wait_for(unique_lock<mutex>& lock,
56 wait_for(unique_lock<mutex>& lock,
64 void notify_all_at_thread_exit(condition_variable& cond, unique_lock<mutex> lk);
125 shared_ptr<mutex> __mut_;
162 : __mut_(make_shared<mutex>()) {}
168 {lock_guard<mutex> __lx(*__mut_);
    [all...]
  /prebuilts/tools/darwin-x86_64/protoc/include/google/protobuf/stubs/
mutex.h 40 // emulates google3/base/mutex.h
45 // A Mutex is a non-reentrant (aka non-recursive) mutex. At most one thread T
46 // may hold a mutex at a given time. If T attempts to Lock() the same Mutex
48 class LIBPROTOBUF_EXPORT Mutex {
50 // Create a Mutex that is not held by anybody.
51 Mutex();
54 ~Mutex();
56 // Block if necessary until this Mutex is free, then acquire it exclusively
    [all...]
  /external/guava/guava-tests/test/com/google/common/collect/
SynchronizedMultimapTest.java 55 SetMultimap<String, String> outer = Synchronized.setMultimap(inner, inner.mutex);
77 public final Object mutex = new Integer(1); // something Serializable field in class:SynchronizedMultimapTest.TestMultimap
84 assertTrue(Thread.holdsLock(mutex));
89 assertTrue(Thread.holdsLock(mutex));
94 assertTrue(Thread.holdsLock(mutex));
99 assertTrue(Thread.holdsLock(mutex));
104 assertTrue(Thread.holdsLock(mutex));
109 assertTrue(Thread.holdsLock(mutex));
114 assertTrue(Thread.holdsLock(mutex));
120 assertTrue(Thread.holdsLock(mutex));
    [all...]

Completed in 1071 milliseconds

<<11121314151617181920>>