HomeSort by relevance Sort by last modified time
    Searched defs:mutex (Results 126 - 150 of 511) sorted by null

1 2 3 4 56 7 8 91011>>

  /external/v8/src/base/platform/
condition-variable.h 10 #include "src/base/platform/mutex.h"
28 // on a Mutex first. The |Wait()| and |WaitFor()| operations atomically release
29 // the mutex and suspend the execution of the calling thread. When the condition
30 // variable is notified, the thread is awakened, and the mutex is reacquired.
45 // notified or a spurious wakeup occurs. Atomically releases the mutex, blocks
49 // unblocked, regardless of the reason, the lock on the mutex is reacquired
51 void Wait(Mutex* mutex);
53 // Atomically releases the mutex, blocks the current executing thread, and
57 // spuriously. When unblocked, regardless of the reason, the lock on the mutex
75 Mutex* mutex() { return &mutex_; } function in class:v8::base::final::final
    [all...]
  /external/valgrind/drd/
drd_clientreq.c 415 const Addr mutex = arg[2]; local
417 DRD_(mutex_unlock)(mutex, mutex_type);
418 DRD_(cond_pre_wait)(cond, mutex);
426 const Addr mutex = arg[2]; local
429 DRD_(mutex_post_lock)(mutex, took_lock, True);
  /external/valgrind/drd/tests/
free_is_write.c 17 // 'mutex' protects 'count'.
18 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
33 pthread_mutex_lock(&mutex);
36 pthread_mutex_unlock(&mutex);
56 pthread_mutex_lock(&mutex);
57 while (count < THREAD_COUNT && pthread_cond_wait(&cond, &mutex) == 0)
59 pthread_mutex_unlock(&mutex);
  /hardware/libhardware/modules/gralloc/
gr.h 46 pthread_mutex_t mutex; member in class:Locker
54 inline Locker() { pthread_mutex_init(&mutex, 0); }
55 inline ~Locker() { pthread_mutex_destroy(&mutex); }
56 inline void lock() { pthread_mutex_lock(&mutex); }
57 inline void unlock() { pthread_mutex_unlock(&mutex); }
  /hardware/qcom/camera/msm8998/QCamera2/stack/common/
cam_semaphore.h 42 /* Implement semaphore with mutex and conditional variable.
49 pthread_mutex_t mutex; member in struct:__anon48908
55 pthread_mutex_init(&(s->mutex), NULL);
62 pthread_mutex_lock(&(s->mutex));
65 pthread_mutex_unlock(&(s->mutex));
71 pthread_mutex_lock(&(s->mutex));
73 rc = pthread_cond_wait(&(s->cond), &(s->mutex));
75 pthread_mutex_unlock(&(s->mutex));
82 pthread_mutex_lock(&(s->mutex));
84 rc = pthread_cond_timedwait(&(s->cond), &(s->mutex), abs_timeout)
    [all...]
  /hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/
IPACM_CmdQueue.cpp 45 pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
145 if(pthread_mutex_lock(&mutex) != 0)
147 IPACMERR("unable to lock the mutex\n");
171 if(pthread_cond_wait(&cond_var, &mutex) != 0)
173 IPACMERR("unable to lock the mutex\n");
175 if(pthread_mutex_unlock(&mutex) != 0)
177 IPACMERR("unable to unlock the mutex\n");
184 if(pthread_mutex_unlock(&mutex) != 0)
186 IPACMERR("unable to unlock the mutex\n");
193 if(pthread_mutex_unlock(&mutex) != 0
    [all...]
  /hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/inc/
message_queue.h 53 pthread_mutex_t mutex; member in struct:video_queue_context
  /hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/inc/
queue.h 53 pthread_mutex_t mutex; member in struct:video_queue_context
  /hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/inc/
message_queue.h 51 pthread_mutex_t mutex; member in struct:video_queue_context
  /hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/inc/
queue.h 51 pthread_mutex_t mutex; member in struct:video_queue_context
  /hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/inc/
message_queue.h 51 pthread_mutex_t mutex; member in struct:video_queue_context
  /hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/inc/
queue.h 51 pthread_mutex_t mutex; member in struct:video_queue_context
  /hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/inc/
message_queue.h 51 pthread_mutex_t mutex; member in struct:video_queue_context
  /hardware/qcom/media/msm8998/mm-video-v4l2/vidc/venc/inc/
queue.h 51 pthread_mutex_t mutex; member in struct:video_queue_context
  /prebuilts/misc/windows/sdl2/test/
testlock.c 13 /* Test the thread and mutex locking functions
25 static SDL_mutex *mutex = NULL; variable
62 SDL_DestroyMutex(mutex);
73 if (SDL_LockMutex(mutex) < 0) {
74 SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't lock mutex: %s", SDL_GetError());
80 if (SDL_UnlockMutex(mutex) < 0) {
81 SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't unlock mutex: %s", SDL_GetError());
110 if ((mutex = SDL_CreateMutex()) == NULL) {
111 SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't create mutex: %s\n", SDL_GetError());
  /external/brotli/java/org/brotli/wrapper/enc/
BrotliEncoderChannel.java 21 private final Object mutex = new Object(); field in class:BrotliEncoderChannel
46 synchronized (mutex) {
53 synchronized (mutex) {
60 synchronized (mutex) {
  /external/compiler-rt/lib/tsan/rtl/
tsan_debugging.cc 26 if (typ == ReportTypeMutexDestroyLocked) return "locked-mutex-destroy";
27 if (typ == ReportTypeMutexDoubleLock) return "mutex-double-lock";
28 if (typ == ReportTypeMutexInvalidAccess) return "mutex-invalid-access";
29 if (typ == ReportTypeMutexBadUnlock) return "mutex-bad-unlock";
30 if (typ == ReportTypeMutexBadReadLock) return "mutex-bad-read-lock";
31 if (typ == ReportTypeMutexBadReadUnlock) return "mutex-bad-read-unlock";
132 ReportMutex *mutex = rep->mutexes[idx]; local
133 *mutex_id = mutex->id;
134 *addr = (void *)mutex->addr;
135 *destroyed = mutex->destroyed
    [all...]
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/
2-2.c 11 * own the mutex with which it called pthread_cond_timedwait().
28 pthread_mutex_t mutex; member in struct:testdata
42 if (pthread_mutex_lock(&td.mutex) != 0) {
43 fprintf(stderr, "[Thread 0x%p] failed to acquire the mutex\n",
47 fprintf(stderr, "[Thread 0x%p] started and locked the mutex\n",
60 rc = pthread_cond_timedwait(&td.cond, &td.mutex, &timeout);
67 if (pthread_mutex_trylock(&td.mutex) == 0) {
69 "mutex again\n", (void *)self);
74 "mutex again\n", (void *)self);
77 if (pthread_mutex_unlock(&td.mutex) != 0)
    [all...]
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/
2-1.c 11 * own the mutex with which it called pthread_cond_wait().
26 pthread_mutex_t mutex; member in struct:testdata
52 if (pthread_mutex_lock(&td.mutex) != 0) {
53 fprintf(stderr, "[Thread 0x%p] failed to acquire the mutex\n",
57 fprintf(stderr, "[Thread 0x%p] started and locked the mutex\n",
63 rc = pthread_cond_wait(&td.cond, &td.mutex);
69 if (pthread_mutex_trylock(&td.mutex) != 0) {
71 "[Thread 0x%p] should be able to lock the recursive mutex again\n",
77 "[Thread 0x%p] was wakened and acquired the mutex again\n",
81 if (pthread_mutex_unlock(&td.mutex) != 0)
    [all...]
2-2.c 11 * own the mutex with which it called pthread_cond_timedwait().
28 pthread_mutex_t mutex; member in struct:testdata
42 if (pthread_mutex_lock(&td.mutex) != 0) {
43 fprintf(stderr, "[Thread 0x%p] failed to acquire the mutex\n",
47 fprintf(stderr, "[Thread 0x%p] started and locked the mutex\n",
61 rc = pthread_cond_timedwait(&td.cond, &td.mutex, &timeout);
68 if (pthread_mutex_trylock(&td.mutex) != 0) {
70 "[Thread 0x%p] should be able to lock the recursive mutex again\n",
76 "[Thread 0x%p] was wakened and acquired the mutex again\n",
80 if (pthread_mutex_unlock(&td.mutex) != 0)
    [all...]
  /external/mesa3d/src/egl/main/
egllog.c 52 mtx_t mutex; member in struct:__anon29369
86 mtx_lock(&logging.mutex);
95 mtx_unlock(&logging.mutex);
115 mtx_lock(&logging.mutex);
117 mtx_unlock(&logging.mutex);
192 mtx_lock(&logging.mutex);
205 mtx_unlock(&logging.mutex);
  /external/mesa3d/src/gallium/auxiliary/pipebuffer/
pb_cache.h 55 pipe_mutex mutex; member in struct:pb_cache
  /external/mesa3d/src/gallium/auxiliary/util/
u_ringbuffer.c 20 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);
  /external/mesa3d/src/gallium/winsys/svga/drm/
vmw_surface.h 60 pipe_mutex mutex; member in struct:vmw_svga_winsys_surface
  /external/mesa3d/src/mapi/
mapi.c 74 static mtx_t mutex = _MTX_INITIALIZER_NP; local
78 mtx_lock(&mutex);
82 mtx_unlock(&mutex);
92 mtx_unlock(&mutex);
117 mtx_unlock(&mutex);

Completed in 617 milliseconds

1 2 3 4 56 7 8 91011>>