Searched defs:mutex (Results 26 - 50 of 236) sorted by relevance

12345678910

/external/valgrind/main/drd/tests/
H A Dtrylock.c22 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,
[all...]
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 Dfree_is_write.c16 // 'mutex' protects 'count'.
17 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
32 pthread_mutex_lock(&mutex);
35 pthread_mutex_unlock(&mutex);
51 pthread_mutex_lock(&mutex);
52 while (count < THREAD_COUNT && pthread_cond_wait(&cond, &mutex) == 0)
54 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);
/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/
H A Dpthread_cond_wait.c53 * mtxExternal - mutex or CS
54 * mtxUnblockLock - mutex or CS
172 * mtxExternal - mutex or CS
173 * mtxUnblockLock - mutex or CS
344 * XSH: Upon successful return, the mutex has been locked and is owned
355 pthread_mutex_t * mutex, const struct timespec *abstime)
400 cleanup_args.mutexPtr = mutex;
410 * Now we can release 'mutex' and...
412 if ((result = pthread_mutex_unlock (mutex)) == 0)
428 * re-lock the mutex an
354 ptw32_cond_timedwait(pthread_cond_t * cond, pthread_mutex_t * mutex, const struct timespec *abstime) argument
454 pthread_cond_wait(pthread_cond_t * cond, pthread_mutex_t * mutex) argument
512 pthread_cond_timedwait(pthread_cond_t * cond, pthread_mutex_t * mutex, const struct timespec *abstime) argument
[all...]
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...]
H A Dpthread_mutex_timedlock.c5 * This translation unit implements mutual exclusion (mutex) primitives.
109 pthread_mutex_timedlock (pthread_mutex_t * mutex, argument
122 * to initialise a static mutex. We check
126 if (*mutex >= PTHREAD_ERRORCHECK_MUTEX_INITIALIZER)
128 if ((result = ptw32_mutex_check_need_init (mutex)) != 0)
134 mx = *mutex;
204 * The mutex is added to a per thread list when ownership is acquired.
226 while (0 == (result = ptw32_robust_mutex_inherit(mutex))
250 * Add mutex to the per-thread robust mutex currentl
[all...]
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/chromium/
H A DDiscardablePixelRef.cpp67 DiscardablePixelRef::DiscardablePixelRef(PassOwnPtr<SkMutex> mutex) argument
68 : SkPixelRef(mutex.get())
70 , m_mutex(mutex)
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/
H A Dlp_fence.h46 pipe_mutex mutex; member in struct:lp_fence
/external/chromium_org/win8/delegate_execute/
H A Ddelegate_execute_operation.h30 // --wait-for-mutex=<MutexNamePid>
33 // The MutexNamePid is a mutex name that also encodes the process id and
56 const string16& mutex() const { function in class:delegate_execute::DelegateExecuteOperation
/external/libnfc-nci/halimpl/bcm2079x/adaptation/
H A DCondVar.cpp78 void CondVar::wait (Mutex& mutex) argument
80 int const res = pthread_cond_wait (&mCondition, mutex.nativeHandle());
98 bool CondVar::wait (Mutex& mutex, long millisec) argument
124 int waitResult = pthread_cond_timedwait_monotonic_np (&mCondition, mutex.nativeHandle(), &absoluteTime);
/external/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_fence.h46 pipe_mutex mutex; member in struct:lp_fence
/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/qemu/distrib/sdl-1.2.15/src/thread/pthread/
H A DSDL_syscond.c98 int SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms) argument
119 retval = pthread_cond_timedwait(&cond->cond, &mutex->id, &abstime);
137 /* Wait on the condition variable, unlocking the provided mutex.
138 The mutex must be locked before entering this function!
140 int SDL_CondWait(SDL_cond *cond, SDL_mutex *mutex) argument
150 if ( pthread_cond_wait(&cond->cond, &mutex->id) != 0 ) {
H A DSDL_sysmutex.c43 SDL_mutex *mutex; local
47 mutex = (SDL_mutex *)SDL_calloc(1, sizeof(*mutex));
48 if ( mutex ) {
57 if ( pthread_mutex_init(&mutex->id, &attr) != 0 ) {
59 SDL_free(mutex);
60 mutex = NULL;
65 return(mutex);
68 void SDL_DestroyMutex(SDL_mutex *mutex) argument
70 if ( mutex ) {
77 SDL_mutexP(SDL_mutex *mutex) argument
116 SDL_mutexV(SDL_mutex *mutex) argument
[all...]
/external/qemu/distrib/sdl-1.2.15/src/thread/riscos/
H A DSDL_syscond.c102 int SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms) argument
123 retval = pthread_cond_timedwait(&cond->cond, &mutex->id, &abstime);
141 /* Wait on the condition variable, unlocking the provided mutex.
142 The mutex must be locked before entering this function!
144 int SDL_CondWait(SDL_cond *cond, SDL_mutex *mutex) argument
154 if ( pthread_cond_wait(&cond->cond, &mutex->id) != 0 ) {
H A DSDL_sysmutex.c44 SDL_mutex *mutex; local
48 mutex = (SDL_mutex *)SDL_calloc(1, sizeof(*mutex));
49 if ( mutex ) {
56 if ( pthread_mutex_init(&mutex->id, &attr) != 0 ) {
58 SDL_free(mutex);
59 mutex = NULL;
64 return(mutex);
67 void SDL_DestroyMutex(SDL_mutex *mutex) argument
69 if ( mutex ) {
76 SDL_mutexP(SDL_mutex *mutex) argument
115 SDL_mutexV(SDL_mutex *mutex) argument
[all...]
/external/qemu/distrib/sdl-1.2.15/src/thread/symbian/
H A DSDL_sysmutex.cpp72 /* Create a mutex */
80 SDL_SetError("Couldn't create mutex");
82 SDL_mutex* mutex = new /*(ELeave)*/ SDL_mutex; local
83 mutex->handle = rmutex.Handle();
84 EpocSdlEnv::AppendCleanupItem(TSdlCleanupItem(DeleteMutex, mutex));
85 return(mutex);
88 /* Free the mutex */
89 void SDL_DestroyMutex(SDL_mutex *mutex) argument
91 if ( mutex )
94 rmutex.SetHandle(mutex
107 SDL_mutexP(SDL_mutex *mutex) argument
120 SDL_mutexV(SDL_mutex *mutex) argument
[all...]
/external/valgrind/main/drd/
H A Ddrd_qtcore_intercepts.c62 /** Convert a Qt4 mutex type to a DRD mutex type. */
75 /** Find out the type of a Qt4 mutex (recursive or not).
77 * mutex_type_unknown and let drd_mutex.c look up the real mutex type.
87 void* mutex,
94 mutex, qt_to_drd_mutex_type(mode), 0, 0, 0);
95 CALL_FN_W_WW(ret, fn, mutex, mode);
97 mutex, 0, 0, 0, 0);
102 void* mutex,
109 mutex, qt_to_drd_mutex_typ
86 QT4CORE_FUNC(void, _ZN6QMutexC1ENS_13RecursionModeE, void* mutex, qt_mutex_mode mode) argument
101 QT4CORE_FUNC(void, _ZN6QMutexC2ENS_13RecursionModeE, void* mutex, qt_mutex_mode mode) argument
116 QT4CORE_FUNC(void, _ZN6QMutexD1Ev, void* mutex) argument
130 QT4CORE_FUNC(void, _ZN6QMutexD2Ev, void** mutex) argument
144 QT4CORE_FUNC(void, _ZN6QMutex4lockEv, void* mutex) argument
158 QT4CORE_FUNC(int, _ZN6QMutex7tryLockEv, void* mutex) argument
173 QT4CORE_FUNC(int, _ZN6QMutex7tryLockEi, void* mutex, int timeout_ms) argument
189 QT4CORE_FUNC(void, _ZN6QMutex6unlockEv, void* mutex) argument
[all...]
/external/webrtc/src/system_wrappers/source/
H A Devent_posix.h53 pthread_mutex_t mutex; member in class:webrtc::EventPosix
/external/chromium_org/third_party/WebKit/Source/wtf/
H A DThreadingPrimitives.h97 MutexTryLocker(Mutex& mutex) : m_mutex(mutex), m_locked(mutex.tryLock()) { } argument
/external/chromium_org/third_party/mesa/src/src/egl/main/
H A Degllog.c51 _EGLMutex mutex; member in struct:__anon12017
85 _eglLockMutex(&logging.mutex);
94 _eglUnlockMutex(&logging.mutex);
114 _eglLockMutex(&logging.mutex);
116 _eglUnlockMutex(&logging.mutex);
191 _eglLockMutex(&logging.mutex);
204 _eglUnlockMutex(&logging.mutex);
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_ringbuffer.c20 pipe_mutex mutex; member in struct:util_ringbuffer
39 pipe_mutex_init(ring->mutex);
51 pipe_mutex_destroy(ring->mutex);
79 pipe_mutex_lock(ring->mutex);
88 pipe_condvar_wait(ring->change, ring->mutex);
106 pipe_mutex_unlock(ring->mutex);
120 pipe_mutex_lock(ring->mutex);
126 pipe_condvar_wait(ring->change, ring->mutex);
158 pipe_mutex_unlock(ring->mutex);
H A Du_slab.h71 pipe_mutex mutex; member in struct:util_slab_mempool
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/wgl/
H A Dstw_framebuffer.h45 * This mutex has two purposes:
49 * It is OK to lock this mutex while holding the stw_device::fb_mutex lock,
52 pipe_mutex mutex; member in struct:stw_framebuffer
57 * Note that even access to immutable members implies acquiring the mutex
97 * This is protected by stw_device::fb_mutex, not the mutex above.
100 * acquiring the stw_framebuffer::mutex of the framebuffer to be deleted.
103 * It is not necessary to aquire the mutex above to navigate the linked list
114 * This function will acquire stw_framebuffer::mutex. stw_framebuffer_release
130 * This function will acquire stw_framebuffer::mutex. stw_framebuffer_release
140 * This function will acquire stw_framebuffer::mutex
[all...]

Completed in 1807 milliseconds

12345678910