Searched refs:mutex (Results 176 - 200 of 587) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/sqlite/src/src/
H A Dmutex_unix.c39 ** Each recursive mutex is an instance of the following structure.
42 pthread_mutex_t mutex; /* Mutex controlling the lock */ member in struct:sqlite3_mutex
46 volatile pthread_t owner; /* Thread that is within this mutex */
82 ** Initialize and deinitialize the mutex subsystem.
89 ** mutex and returns a pointer to it. If it returns NULL
90 ** that means that a mutex could not be allocated. SQLite
106 ** a new mutex. The new mutex is recursive when SQLITE_MUTEX_RECURSIVE
108 ** The mutex implementation does not need to make a distinction
110 ** not want to. But SQLite will only request a recursive mutex i
[all...]
H A Dbtmutex.c23 ** Obtain the BtShared mutex associated with B-Tree handle p. Also,
29 assert( sqlite3_mutex_notheld(p->pBt->mutex) );
30 assert( sqlite3_mutex_held(p->db->mutex) );
32 sqlite3_mutex_enter(p->pBt->mutex);
38 ** Release the BtShared mutex associated with B-Tree handle p and
44 assert( sqlite3_mutex_held(pBt->mutex) );
45 assert( sqlite3_mutex_held(p->db->mutex) );
48 sqlite3_mutex_leave(pBt->mutex);
53 ** Enter a mutex on the given BTree object.
55 ** If the object is not sharable, then no mutex i
[all...]
/external/chromium_org/v8/src/base/platform/
H A Dcondition-variable.cc62 void ConditionVariable::Wait(Mutex* mutex) { argument
63 mutex->AssertHeldAndUnmark();
64 int result = pthread_cond_wait(&native_handle_, &mutex->native_handle());
67 mutex->AssertUnheldAndMark();
71 bool ConditionVariable::WaitFor(Mutex* mutex, const TimeDelta& rel_time) { argument
74 mutex->AssertHeldAndUnmark();
82 &native_handle_, &mutex->native_handle(), &ts);
102 &native_handle_, &mutex->native_handle(), &ts);
104 mutex->AssertUnheldAndMark();
227 LockGuard<Mutex> lock_guard(native_handle_.mutex());
[all...]
/external/chromium_org/native_client_sdk/src/libraries/sdk_util/
H A Dsimple_lock.h16 * A pthread mutex object, with automatic initialization and destruction.
32 pthread_mutex_t* mutex() const { return &lock_; } function in class:sdk_util::SimpleLock
/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/
H A Dpthread_mutex_unlock.c5 * This translation unit implements mutual exclusion (mutex) primitives.
42 pthread_mutex_unlock (pthread_mutex_t * mutex) argument
52 mx = *mutex;
55 * If the thread calling us holds the mutex then there is no
76 * Someone may be waiting on that mutex.
97 /* Someone may be waiting on that mutex */
118 * The thread must own the lock regardless of type if the mutex
128 ptw32_robust_mutex_remove(mutex, NULL);
134 * Someone may be waiting on that mutex.
147 ptw32_robust_mutex_remove(mutex, NUL
[all...]
H A Dpthread_spin_unlock.c67 return pthread_mutex_unlock (&(s->u.mutex));
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/
H A Dmutex_adopt_lock.pass.cpp25 assert(lk.mutex() == &m);
H A Dmutex_defer_lock.pass.cpp24 assert(lk.mutex() == &m);
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/
H A DAndroid.mk17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/Android.mk
19 test_name := thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/release
23 test_name := thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/member_swap
27 test_name := thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/nonmember_swap
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
H A Dtry_lock_until.pass.cpp10 // <mutex>
17 #include <mutex>
22 struct mutex struct
35 mutex m;
40 std::unique_lock<mutex> lk(m, std::defer_lock);
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/
H A DAndroid.mk17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/Android.mk
19 test_name := thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/release
23 test_name := thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/member_swap
27 test_name := thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/nonmember_swap
/external/libcxx/test/thread/thread.mutex/thread.lock/
H A Dtypes.pass.cpp10 // <mutex>
20 #include <mutex>
/external/libnfc-nci/halimpl/bcm2079x/adaptation/
H A DCondVar.cpp81 void CondVar::wait (Mutex& mutex) argument
83 int const res = pthread_cond_wait (&mCondition, mutex.nativeHandle());
101 bool CondVar::wait (Mutex& mutex, long millisec) argument
123 int waitResult = pthread_cond_timedwait (&mCondition, mutex.nativeHandle(), &absoluteTime);
/external/lldb/include/lldb/Host/
H A DCondition.h73 /// \a mutex. The waiting thread unblocks only after another thread
82 /// The current thread re-acquires the lock on \a mutex following
85 /// @param[in] mutex
86 /// The mutex to use in the \c pthread_cond_timedwait() or
102 Wait (Mutex &mutex, const TimeValue *abstime = NULL, bool *timed_out = NULL);
/external/lldb/test/api/multithreaded/
H A Dcommon.h8 #include <mutex>
27 std::mutex m_mutex;
34 std::lock_guard<std::mutex> lock(m_mutex);
43 std::unique_lock<std::mutex> lock(m_mutex);
/external/qemu/audio/
H A Daudio_pt_int.h10 pthread_mutex_t mutex; member in struct:audio_pt
/external/qemu/distrib/sdl-1.2.15/include/
H A DSDL_mutex.h54 /** The SDL mutex structure, defined in SDL_mutex.c */
58 /** Create a mutex, initialized unlocked */
62 /** Lock the mutex
65 extern DECLSPEC int SDLCALL SDL_mutexP(SDL_mutex *mutex);
68 /** Unlock the mutex
71 * It is an error to unlock a mutex that has not been locked by
74 extern DECLSPEC int SDLCALL SDL_mutexV(SDL_mutex *mutex);
76 /** Destroy a mutex */
77 extern DECLSPEC void SDLCALL SDL_DestroyMutex(SDL_mutex *mutex);
153 /** Wait on the condition variable, unlocking the provided mutex
[all...]
/external/qemu/distrib/sdl-1.2.15/src/thread/pth/
H A DSDL_syscond.c103 The mutex must be locked before entering this function!
104 The mutex is unlocked during the wait, and locked again after the wait.
122 int SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms) argument
138 if ( pth_cond_await(&(cond->condpth_p), &(mutex->mutexpth_p), ev) != 0 ) {
149 int SDL_CondWait(SDL_cond *cond, SDL_mutex *mutex) argument
159 if ( pth_cond_await(&(cond->condpth_p), &(mutex->mutexpth_p), NULL) != 0 ) {
/external/valgrind/main/drd/tests/
H A Dpth_mutex_reinit.stderr.exp2 Mutex reinitialization: mutex 0x........, recursion count 0, owner 1.
5 mutex 0x........ was first observed at:
/external/chromium_org/third_party/mesa/src/src/mapi/mapi/
H A Dmapi.c76 u_mutex_declare_static(mutex);
80 u_mutex_lock(mutex);
84 u_mutex_unlock(mutex);
94 u_mutex_unlock(mutex);
119 u_mutex_unlock(mutex);
/external/libcxx/test/thread/thread.condition/thread.condition.condvar/
H A Dwait_until.pass.cpp16 // wait_until(unique_lock<mutex>& lock,
20 #include <mutex>
43 std::mutex mut;
52 std::unique_lock<std::mutex> lk(mut);
77 std::unique_lock<std::mutex>lk(mut);
91 std::unique_lock<std::mutex>lk(mut);
H A Dwait_until_pred.pass.cpp16 // wait_until(unique_lock<mutex>& lock,
21 #include <mutex>
53 std::mutex mut;
62 std::unique_lock<std::mutex> lk(mut);
88 std::unique_lock<std::mutex>lk(mut);
102 std::unique_lock<std::mutex>lk(mut);
/external/mesa3d/src/mapi/mapi/
H A Dmapi.c76 u_mutex_declare_static(mutex);
80 u_mutex_lock(mutex);
84 u_mutex_unlock(mutex);
94 u_mutex_unlock(mutex);
119 u_mutex_unlock(mutex);
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vdpau/
H A Dpresentation.c68 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/mesa3d/src/gallium/state_trackers/vdpau/
H A Dpresentation.c68 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...]

Completed in 1692 milliseconds

1234567891011>>