Searched refs:mutex (Results 101 - 125 of 587) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/skia/include/core/
H A DSkThread.h87 void acquire(); // Block until this thread owns the mutex.
88 void release(); // Assuming this thread owns the mutex, release it.
89 void assertHeld(); // If SK_DEBUG, assert this thread owns the mutex.
106 explicit SkAutoMutexAcquire(SkBaseMutex& mutex) : fMutex(&mutex) { argument
108 mutex.acquire();
111 explicit SkAutoMutexAcquire(SkBaseMutex* mutex) : fMutex(mutex) { argument
112 if (mutex) {
113 mutex
[all...]
/external/fio/
H A Dgettime-thread.c29 struct fio_mutex *mutex = data; local
31 fio_mutex_up(mutex);
49 struct fio_mutex *mutex; local
53 mutex = fio_mutex_init(FIO_MUTEX_LOCKED);
54 if (!mutex)
73 fio_mutex_down(mutex);
76 fio_mutex_remove(mutex);
/external/libcxx/test/thread/thread.condition/thread.condition.condvar/
H A Dnotify_one.pass.cpp17 #include <mutex>
22 std::mutex mut;
30 std::unique_lock<std::mutex> lk(mut);
40 std::unique_lock<std::mutex> lk(mut);
54 std::unique_lock<std::mutex>lk(mut);
61 std::unique_lock<std::mutex>lk(mut);
78 std::unique_lock<std::mutex>lk(mut);
H A Dwait_pred.pass.cpp15 // 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);
/external/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_fence.c55 pipe_mutex_init(fence->mutex);
75 pipe_mutex_destroy(fence->mutex);
91 pipe_mutex_lock(fence->mutex);
100 /* Wakeup all threads waiting on the mutex:
104 pipe_mutex_unlock(fence->mutex);
119 pipe_mutex_lock(f->mutex);
122 pipe_condvar_wait(f->signalled, f->mutex);
124 pipe_mutex_unlock(f->mutex);
/external/skia/include/core/
H A DSkThread.h86 void acquire(); // Block until this thread owns the mutex.
87 void release(); // Assuming this thread owns the mutex, release it.
88 void assertHeld(); // If SK_DEBUG, assert this thread owns the mutex.
106 explicit SkAutoMutexAcquire(SkBaseMutex& mutex) : fMutex(&mutex) { argument
108 mutex.acquire();
111 explicit SkAutoMutexAcquire(SkBaseMutex* mutex) : fMutex(mutex) { argument
112 if (mutex) {
113 mutex
[all...]
/external/valgrind/main/drd/tests/
H A Dbug-235681.c13 pthread_mutex_t mutex; variable
25 rc = pthread_mutex_lock(&mutex);
31 rc = pthread_cond_wait(&cond_var, &mutex);
39 rc = pthread_mutex_unlock(&mutex);
56 rc = pthread_mutex_init(&mutex, NULL);
71 rc = pthread_mutex_lock(&mutex);
82 rc = pthread_mutex_unlock(&mutex);
H A Dhold_lock.c28 pthread_mutex_t mutex; local
45 fprintf(stderr, "Locking mutex ...\n");
49 pthread_mutex_init(&mutex, &mutexattr);
51 pthread_mutex_lock(&mutex);
53 pthread_mutex_lock(&mutex);
54 pthread_mutex_unlock(&mutex);
55 pthread_mutex_unlock(&mutex);
56 pthread_mutex_destroy(&mutex);
H A Dboost_thread.cpp2 // use the boost::thread, boost::mutex and boost::condition classes.
6 #include <boost/thread/mutex.hpp>
12 static boost::mutex s_m;
18 boost::mutex::scoped_lock sl(s_m);
26 boost::mutex::scoped_lock sl(s_m);
/external/deqp/framework/delibs/decpp/
H A DdeMutex.hpp55 * \brief Scoped mutex lock.
64 ScopedLock (Mutex& mutex);
77 * \brief Acquire mutex lock.
82 * If mutex is currently locked the function will block until current
85 * In recursive mode further calls from the thread owning the mutex will
94 * \brief Release mutex lock.
99 * In recursive mode the mutex will be released once the lock count reaches
111 * This function will never block, i.e. it will return false if mutex
122 * \brief Acquire scoped lock to mutex.
123 * \param mutex Mute
125 ScopedLock(Mutex& mutex) argument
[all...]
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/
H A Dunlock.pass.cpp23 struct mutex struct
29 mutex m;
36 std::shared_lock<mutex> lk(m);
/external/libcxx/test/thread/thread.mutex/thread.lock.algorithm/
H A DAndroid.mk17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.lock.algorithm/Android.mk
19 test_name := thread/thread.mutex/thread.lock.algorithm/lock
23 test_name := thread/thread.mutex/thread.lock.algorithm/try_lock
/external/valgrind/main/drd/
H A Ddrd_mutex.c69 const Addr mutex, const MutexT mutex_type)
71 tl_assert(mutex);
72 tl_assert(p->a1 == mutex);
104 "Destroying locked mutex",
112 /** Report that address 'mutex' is not the address of a mutex object. */
113 void DRD_(not_a_mutex)(const Addr mutex) argument
116 mutex, -1, DRD_INVALID_THREADID };
120 "Not a mutex",
125 * Report that address 'mutex' i
68 mutex_initialize(struct mutex_info* const p, const Addr mutex, const MutexT mutex_type) argument
128 wrong_mutex_type(const Addr mutex) argument
141 mutex_get_or_allocate(const Addr mutex, const MutexT mutex_type) argument
169 mutex_get(const Addr mutex) argument
177 mutex_init(const Addr mutex, const MutexT mutex_type) argument
213 mutex_post_destroy(const Addr mutex) argument
233 mutex_pre_lock(const Addr mutex, MutexT mutex_type, const Bool trylock) argument
284 mutex_post_lock(const Addr mutex, const Bool took_lock, const Bool post_cond_wait) argument
347 mutex_unlock(const Addr mutex, MutexT mutex_type) argument
483 mutex_is_locked_by(const Addr mutex, const DrdThreadId tid) argument
493 mutex_get_recursion_count(const Addr mutex) argument
[all...]
/external/chromium_org/third_party/icu/source/common/
H A Dumutex.cpp17 * 11/22/99 aliu Make non-global mutex autoinitialize [j151]
29 // The ICU global mutex. Used when ICU implementation code passes NULL for the mutex pointer.
34 * platform independent set of mutex operations. For internal ICU use only.
38 // Build time user mutex hook: #include "U_USER_MUTEX_CPP"
118 umtx_lock(UMutex *mutex) { argument
119 if (mutex == NULL) {
120 mutex = &globalMutex;
122 CRITICAL_SECTION *cs = &mutex->fCS;
123 umtx_initOnce(mutex
128 umtx_unlock(UMutex* mutex) argument
151 umtx_lock(UMutex *mutex) argument
162 umtx_unlock(UMutex* mutex) argument
[all...]
/external/icu/icu4c/source/common/
H A Dumutex.cpp17 * 11/22/99 aliu Make non-global mutex autoinitialize [j151]
29 // The ICU global mutex. Used when ICU implementation code passes NULL for the mutex pointer.
34 * platform independent set of mutex operations. For internal ICU use only.
38 // Build time user mutex hook: #include "U_USER_MUTEX_CPP"
118 umtx_lock(UMutex *mutex) { argument
119 if (mutex == NULL) {
120 mutex = &globalMutex;
122 CRITICAL_SECTION *cs = &mutex->fCS;
123 umtx_initOnce(mutex
128 umtx_unlock(UMutex* mutex) argument
151 umtx_lock(UMutex *mutex) argument
162 umtx_unlock(UMutex* mutex) argument
[all...]
/external/deqp/framework/delibs/dethread/
H A DdeThreadTest.c176 deMutex mutex = *((deMutex*)arg); local
178 deMutex_lock(mutex);
179 deMutex_unlock(mutex);
184 deMutex mutex; member in struct:MutexData2_s
198 deMutex_lock(data->mutex);
202 deMutex_unlock(data->mutex);
213 deMutex_unlock(data->mutex);
218 deMutex_lock(data->mutex);
220 deMutex_unlock(data->mutex);
225 deMutex mutex local
236 deMutex mutex = deMutex_create(DE_NULL); local
254 deMutex mutex; local
276 deMutex mutex; local
338 deMutex mutex = deMutex_create(DE_NULL); local
[all...]
/external/chromium_org/sync/syncable/
H A Dscoped_kernel_lock.cc13 : scoped_lock_(dir->kernel_->mutex), dir_(const_cast<Directory*>(dir)) {
/external/libcxx/test/thread/thread.condition/
H A Dnotify_all_at_thread_exit.pass.cpp13 // 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);
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/
H A Ddefault.pass.cpp24 assert(ul.mutex() == nullptr);
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
H A Dtry_lock.pass.cpp10 // <mutex>
16 #include <mutex>
21 struct mutex struct
31 mutex m;
35 std::unique_lock<mutex> lk(m, std::defer_lock);
H A Dtry_lock_for.pass.cpp10 // <mutex>
17 #include <mutex>
24 struct mutex struct
36 mutex m;
40 std::unique_lock<mutex> lk(m, std::defer_lock);
/external/libhevc/common/
H A Dithread.h51 WORD32 ithread_mutex_init(void *mutex);
53 WORD32 ithread_mutex_destroy(void *mutex);
55 WORD32 ithread_mutex_lock(void *mutex);
57 WORD32 ithread_mutex_unlock(void *mutex);
/external/lldb/test/api/multithreaded/
H A Dtest_breakpoint_callback.cpp5 #include <mutex>
17 mutex g_mutex;
25 lock_guard<mutex> lock(g_mutex);
43 unique_lock<mutex> lock(g_mutex);
/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/
H A Dpthread_mutex_consistent.c5 * This translation unit implements mutual exclusion (mutex) primitives.
40 * robustness defines the behavior when the owner of the mutex terminates without unlocking the
41 * mutex, usually because its process terminated abnormally. The value of robustness that is
45 * When the owner of the mutex terminates without unlocking the mutex, all subsequent calls
48 * When the owner of the mutex terminates without unlocking the mutex, the mutex is
49 * unlocked. The next owner of this mutex acquires the mutex wit
77 ptw32_robust_mutex_inherit(pthread_mutex_t * mutex) argument
116 ptw32_robust_mutex_add(pthread_mutex_t* mutex, pthread_t self) argument
142 ptw32_robust_mutex_remove(pthread_mutex_t* mutex, ptw32_thread_t* otp) argument
166 pthread_mutex_consistent(pthread_mutex_t* mutex) argument
[all...]
/external/libcxx/test/thread/thread.mutex/thread.lock/
H A DAndroid.mk17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.lock/Android.mk
19 test_name := thread/thread.mutex/thread.lock/types

Completed in 462 milliseconds

1234567891011>>