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

<<11121314151617181920>>

  /external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.guard/
adopt_lock.pass.cpp 12 // <mutex>
14 // template <class Mutex> class lock_guard;
18 #include <mutex>
23 std::mutex m;
37 std::lock_guard<std::mutex> lg(m, std::adopt_lock);
mutex.fail.cpp 10 // <mutex>
12 // template <class Mutex> class lock_guard;
16 #include <mutex>
21 std::mutex m;
34 std::lock_guard<std::mutex> lg = m;
mutex.pass.cpp 12 // <mutex>
14 // template <class Mutex> class lock_guard;
18 #include <mutex>
23 std::mutex m;
36 std::lock_guard<std::mutex> lg(m);
  /external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/
mutex.pass.cpp 12 // <mutex>
14 // template <class Mutex> class unique_lock;
18 #include <mutex>
23 std::mutex m;
36 std::unique_lock<std::mutex> ul(m);
  /external/v8/src/
optimizing-compile-dispatcher.h 12 #include "src/base/platform/mutex.h"
47 base::LockGuard<base::Mutex> access_input_queue(&input_queue_mutex_);
76 base::Mutex input_queue_mutex_;
82 base::Mutex output_queue_mutex_;
89 base::Mutex ref_count_mutex_;
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.condition/
notify_all_at_thread_exit.pass.cpp 13 // notify_all_at_thread_exit(condition_variable& cond, unique_lock<mutex> lk);
16 #include <mutex>
22 std::mutex mut;
29 std::unique_lock<std::mutex> lk(mut);
36 std::unique_lock<std::mutex> lk(mut);
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.condition/thread.condition.condvar/
wait.pass.cpp 14 // void wait(unique_lock<mutex>& lock);
17 #include <mutex>
22 std::mutex mut;
29 std::unique_lock<std::mutex> lk(mut);
40 std::unique_lock<std::mutex>lk(mut);
wait_pred.pass.cpp 15 // void wait(unique_lock<mutex>& lock, Predicate pred);
18 #include <mutex>
24 std::mutex mut;
40 std::unique_lock<std::mutex> lk(mut);
50 std::unique_lock<std::mutex>lk(mut);
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.guard/
adopt_lock.pass.cpp 10 // <mutex>
12 // template <class Mutex> class lock_guard;
16 #include <mutex>
21 std::mutex m;
35 std::lock_guard<std::mutex> lg(m, std::adopt_lock);
mutex.fail.cpp 10 // <mutex>
12 // template <class Mutex> class lock_guard;
16 #include <mutex>
21 std::mutex m;
34 std::lock_guard<std::mutex> lg = m;
mutex.pass.cpp 10 // <mutex>
12 // template <class Mutex> class lock_guard;
16 #include <mutex>
21 std::mutex m;
34 std::lock_guard<std::mutex> lg(m);
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/
mutex.pass.cpp 10 // <mutex>
12 // template <class Mutex> class unique_lock;
16 #include <mutex>
21 std::mutex m;
34 std::unique_lock<std::mutex> ul(m);
  /external/clang/include/clang/Analysis/Analyses/
ThreadSafety.h 43 /// mutex.
45 LK_Shared, ///< Shared/reader lock of a mutex.
46 LK_Exclusive, ///< Exclusive/writer lock of a mutex.
59 /// \enum SK_LockedSomeLoopIterations -- a mutex is locked for some but not all
61 /// \enum SK_LockedSomePredecessors -- a mutex is locked in some but not all
63 /// \enum SK_LockedAtEndOfFunction -- a mutex is still locked at the end of a
80 /// \param Kind -- the capability's name parameter (role, mutex, etc).
86 /// \param Kind -- the capability's name parameter (role, mutex, etc).
98 /// \param Kind -- the capability's name parameter (role, mutex, etc).
107 /// \param Kind -- the capability's name parameter (role, mutex, etc)
    [all...]
  /external/guava/guava-tests/test/com/google/common/collect/
SynchronizedBiMapTest.java 71 new TestBiMap<K, V>(HashBiMap.<K, V>create(), mutex);
72 BiMap<K, V> outer = Synchronized.biMap(inner, mutex);
79 Object mutex = new Object(); local
92 Object mutex = new Object(); local
94 new TestBiMap<String, String>(HashBiMap.<String, String>create(), mutex);
95 BiMap<String, String> result = Synchronized.biMap(backing, mutex);
107 public TestBiMap(BiMap<K, V> delegate, Object mutex) {
108 super(delegate, mutex);
114 assertTrue(Thread.holdsLock(mutex));
120 assertTrue(Thread.holdsLock(mutex));
    [all...]
  /external/opencv3/3rdparty/openexr/IlmThread/
IlmThreadSemaphorePosixCompat.cpp 56 if (int error = ::pthread_mutex_init (&_semaphore.mutex, 0))
57 Iex::throwErrnoExc ("Cannot initialize mutex (%T).", error);
72 error = ::pthread_mutex_destroy (&_semaphore.mutex);
80 ::pthread_mutex_lock (&_semaphore.mutex);
87 &_semaphore.mutex))
89 ::pthread_mutex_unlock (&_semaphore.mutex);
99 ::pthread_mutex_unlock (&_semaphore.mutex);
106 ::pthread_mutex_lock (&_semaphore.mutex);
110 ::pthread_mutex_unlock (&_semaphore.mutex);
116 ::pthread_mutex_unlock (&_semaphore.mutex);
    [all...]
  /external/mesa3d/src/gallium/state_trackers/vdpau/
presentation.c 68 pipe_mutex_lock(dev->mutex);
70 pipe_mutex_unlock(dev->mutex);
74 pipe_mutex_unlock(dev->mutex);
102 pipe_mutex_lock(pq->device->mutex);
104 pipe_mutex_unlock(pq->device->mutex);
134 pipe_mutex_lock(pq->device->mutex);
136 pipe_mutex_unlock(pq->device->mutex);
158 pipe_mutex_lock(pq->device->mutex);
160 pipe_mutex_unlock(pq->device->mutex);
186 pipe_mutex_lock(pq->device->mutex);
    [all...]
  /external/icu/icu4c/source/common/unicode/
uclean.h 66 * u_cleanup() also clears any ICU heap functions, mutex functions or
165 * An opaque pointer type that represents an ICU mutex.
167 * struct or object that implements the mutex.
174 * Function Pointer type for a user supplied mutex initialization function.
176 * new mutex. The function implementation should create a mutex, and store a pointer
177 * to something that uniquely identifies the mutex into the UMTX that is supplied
180 * @param mutex Receives a pointer that identifies the new mutex.
181 * The mutex init function must set the UMTX to a non-null value.
    [all...]
  /external/libcxx/include/
__mutex_base 27 class _LIBCPP_TYPE_VIS mutex
34 constexpr mutex() _NOEXCEPT : __m_(PTHREAD_MUTEX_INITIALIZER) {}
36 mutex() _NOEXCEPT {__m_ = (pthread_mutex_t)PTHREAD_MUTEX_INITIALIZER;}
38 ~mutex();
41 mutex(const mutex&);// = delete;
42 mutex& operator=(const mutex&);// = delete;
190 mutex_type* mutex() const _NOEXCEPT {return __m_;}
198 __throw_system_error(EPERM, "unique_lock::lock: references null mutex");
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/include/
__mutex_base 27 class _LIBCPP_TYPE_VIS mutex
35 constexpr mutex() _NOEXCEPT : __m_(PTHREAD_MUTEX_INITIALIZER) {}
37 mutex() _NOEXCEPT {__m_ = (pthread_mutex_t)PTHREAD_MUTEX_INITIALIZER;}
39 ~mutex();
42 mutex(const mutex&);// = delete;
43 mutex& operator=(const mutex&);// = delete;
192 mutex_type* mutex() const _NOEXCEPT {return __m_;}
200 __throw_system_error(EPERM, "unique_lock::lock: references null mutex");
    [all...]
  /prebuilts/ndk/current/sources/cxx-stl/llvm-libc++/libcxx/include/
__mutex_base 27 class _LIBCPP_TYPE_VIS mutex
35 constexpr mutex() _NOEXCEPT : __m_(PTHREAD_MUTEX_INITIALIZER) {}
37 mutex() _NOEXCEPT {__m_ = (pthread_mutex_t)PTHREAD_MUTEX_INITIALIZER;}
39 ~mutex();
42 mutex(const mutex&);// = delete;
43 mutex& operator=(const mutex&);// = delete;
192 mutex_type* mutex() const _NOEXCEPT {return __m_;}
200 __throw_system_error(EPERM, "unique_lock::lock: references null mutex");
    [all...]
  /bionic/benchmarks/
pthread_benchmark.cpp 69 pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; local
72 pthread_mutex_lock(&mutex);
73 pthread_mutex_unlock(&mutex);
79 pthread_mutex_t mutex = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP; local
82 pthread_mutex_lock(&mutex);
83 pthread_mutex_unlock(&mutex);
89 pthread_mutex_t mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; local
92 pthread_mutex_lock(&mutex);
93 pthread_mutex_unlock(&mutex);
  /development/ndk/sources/android/native_app_glue/
android_native_app_glue.c 40 pthread_mutex_lock(&android_app->mutex);
46 pthread_mutex_unlock(&android_app->mutex);
93 pthread_mutex_lock(&android_app->mutex);
105 pthread_mutex_unlock(&android_app->mutex);
110 pthread_mutex_lock(&android_app->mutex);
113 pthread_mutex_unlock(&android_app->mutex);
126 pthread_mutex_lock(&android_app->mutex);
129 pthread_mutex_unlock(&android_app->mutex);
150 pthread_mutex_lock(&android_app->mutex);
153 pthread_mutex_unlock(&android_app->mutex);
    [all...]
  /external/compiler-rt/lib/tsan/tests/unit/
tsan_mutex_test.cc 96 TEST(Mutex, Write) {
97 Mutex mtx(MutexTypeAnnotations, StatMtxAnnotations);
98 TestData<Mutex> data(&mtx);
101 pthread_create(&threads[i], 0, write_mutex_thread<Mutex>, &data);
106 TEST(Mutex, ReadWrite) {
107 Mutex mtx(MutexTypeAnnotations, StatMtxAnnotations);
108 TestData<Mutex> data(&mtx);
111 pthread_create(&threads[i], 0, read_mutex_thread<Mutex>, &data);
116 TEST(Mutex, SpinWrite) {
  /external/deqp/framework/delibs/dethread/
deMutex.h 23 * \brief Mutex class.
33 * \brief Mutex attributes.
38 * \brief Create recursive mutex.
40 * Recursive mutex can be locked multiple times from single thread
48 * \brief Mutex attributes.
56 void deMutex_destroy (deMutex mutex);
57 void deMutex_lock (deMutex mutex);
58 deBool deMutex_tryLock (deMutex mutex);
59 void deMutex_unlock (deMutex mutex);
  /external/google-breakpad/src/common/android/testing/
pthread_fixes.h 48 pthread_mutex_t mutex; member in struct:__anon11358::__anon11359
57 pthread_mutex_init(&barrier->mutex, NULL);
63 // Lock the mutex
64 pthread_mutex_lock(&barrier->mutex);
66 // waiters, unlock the mutex, then return PTHREAD_BARRIER_SERIAL_THREAD.
70 pthread_mutex_unlock(&barrier->mutex);
76 pthread_cond_wait(&barrier->cond, &barrier->mutex);
79 pthread_mutex_unlock(&barrier->mutex);
86 pthread_mutex_destroy(&barrier->mutex);

Completed in 523 milliseconds

<<11121314151617181920>>