Searched defs:mutex (Results 226 - 250 of 263) sorted by relevance

1234567891011

/external/chromium_org/third_party/sqlite/src/src/
H A Dos_os2.c713 ** Helper functions to obtain and relinquish the global mutex. The
714 ** global mutex is used to protect os2ShmNodeList.
716 ** Function os2ShmMutexHeld() is used to assert() that the global mutex
759 ** Either os2ShmNode.mutex must be held or os2ShmNode.nRef==0 and
765 sqlite3_mutex *mutex; /* Mutex to access this object */ member in struct:os2ShmNode
791 ** All other fields are read/write. The os2Shm.pShmNode->mutex must be held
841 assert( sqlite3_mutex_held(pNode->mutex) || pNode->nRef==0 );
933 pNode->mutex = sqlite3_mutex_alloc(SQLITE_MUTEX_FAST);
934 if( !pNode->mutex ) {
955 sqlite3_mutex_enter(pNode->mutex);
[all...]
H A Dos_win.c356 ** Create the mutex and shared memory used for locking in the file
368 ** to derive a mutex name. */
374 /* Create/open the named mutex */
382 /* Acquire the mutex before continuing */
386 ** case-sensitive, take advantage of that by uppercasing the mutex name
414 /* If shared memory could not be created, then close the mutex and fail */
436 /* Acquire the mutex */
458 /* Done with the mutex */
1227 ** Helper functions to obtain and relinquish the global mutex. The
1228 ** global mutex i
1275 sqlite3_mutex *mutex; /* Mutex to access this object */ member in struct:winShmNode
[all...]
H A Dos_unix.c484 ** Helper functions to obtain and relinquish the global mutex. The
485 ** global mutex is used to protect the unixInodeInfo and
489 ** Function unixMutexHeld() is used to assert() that the global mutex
1067 ** The mutex entered using the unixEnterMutex() function must be held
1099 ** The mutex entered using the unixEnterMutex() function must be held
1371 /* This mutex is needed because pFile->pInode is shared across threads
1737 ** It is *not* necessary to hold the mutex when this routine is called,
1738 ** even on VxWorks. A mutex will be acquired on VxWorks by the
2598 /* This mutex is needed because pFile->pInode is shared across threads
3562 ** Either unixShmNode.mutex mus
3568 sqlite3_mutex *mutex; /* Mutex to access this object */ member in struct:unixShmNode
[all...]
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator.h438 GetRegionInfo(i)->mutex.Lock();
444 GetRegionInfo(i)->mutex.Unlock();
483 BlockingMutex mutex; member in struct:__sanitizer::SizeClassAllocator64::RegionInfo
515 BlockingMutexLock l(&region->mutex);
729 SpinMutexLock l(&sci->mutex);
741 SpinMutexLock l(&sci->mutex);
791 GetSizeClassInfo(i)->mutex.Lock();
797 GetSizeClassInfo(i)->mutex.Unlock();
829 SpinMutex mutex; member in struct:__sanitizer::SizeClassAllocator32::SizeClassInfo
/external/fio/
H A Dfio.h23 #include "mutex.h"
240 struct fio_mutex *mutex; member in struct:thread_data
/external/linux-tools-perf/perf-3.12.0/include/linux/
H A Dperf_event.h39 #include <linux/mutex.h>
309 * Locked for modification by both ctx->mutex and ctx->lock; holding
388 struct mutex child_mutex;
399 struct mutex mmap_mutex;
461 * Protect the list of events. Locking either mutex or lock
463 * the list you need to lock both the mutex and the spinlock.
465 struct mutex mutex; member in struct:perf_event_context
/external/linux-tools-perf/perf-3.12.0/tools/perf/bench/
H A Dnuma.c412 * Return a process-shared (global) mutex:
414 static void init_global_mutex(pthread_mutex_t *mutex) argument
420 pthread_mutex_init(mutex, &attr);
1451 /* This mutex is locked - the last started thread will wake us: */
/external/llvm/utils/unittest/googletest/include/gtest/internal/
H A Dgtest-port.h1195 // MutexBase and Mutex implement mutex on pthreads-based platforms. They
1198 // Mutex mutex;
1200 // MutexLock lock(&mutex); // Acquires the mutex and releases it at the end
1205 // the following to define a static mutex:
1209 // You can forward declare a static mutex like this:
1213 // To create a dynamic mutex, just define an object of type Mutex.
1216 // Acquires this mutex.
1222 // Releases this mutex.
1226 // mutex whe
1277 GTestMutexLock(MutexBase* mutex) argument
[all...]
/external/mesa3d/src/gallium/state_trackers/d3d1x/gd3d11/
H A Dd3d11_screen.h99 maybe_mutex_t<threadsafe> mutex; member in struct:GalliumD3D11ScreenImpl
104 #define SYNCHRONIZED lock_t<maybe_mutex_t<threadsafe> > lock_(mutex)
/external/mesa3d/src/gtest/include/gtest/internal/
H A Dgtest-port.h1185 // MutexBase and Mutex implement mutex on pthreads-based platforms. They
1188 // Mutex mutex;
1190 // MutexLock lock(&mutex); // Acquires the mutex and releases it at the end
1195 // the following to define a static mutex:
1199 // You can forward declare a static mutex like this:
1203 // To create a dynamic mutex, just define an object of type Mutex.
1206 // Acquires this mutex.
1212 // Releases this mutex.
1216 // mutex whe
1267 GTestMutexLock(MutexBase* mutex) argument
[all...]
/external/qemu/include/exec/
H A Dcpu-all.h474 QemuMutex mutex; member in struct:RAMList
/external/blktrace/
H A Dblktrace.c103 * data onto. It's list is protected above (tracer_devpath_head.mutex)
124 * We will use a mutex to guard each of the trace_buf list. The tracers
142 pthread_mutex_t mutex; member in struct:tracer_devpath_head
522 static void t_pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) argument
527 pthread_cond_timedwait(cond, mutex, &ts);
1140 pthread_mutex_destroy(&hd->mutex);
1161 pthread_mutex_init(&hd->mutex, NULL);
1177 pthread_mutex_lock(&hd->mutex);
1179 pthread_mutex_unlock(&hd->mutex);
1399 pthread_mutex_lock(&hd->mutex);
[all...]
/external/chromium_org/testing/gtest/include/gtest/internal/
H A Dgtest-port.h1607 // Mutex implements mutex on Windows platforms. It is used in conjunction
1610 // Mutex mutex;
1612 // MutexLock lock(&mutex); // Acquires the mutex and releases it at the
1641 // Does nothing if the current thread holds the mutex. Otherwise, crashes
1662 # define GTEST_DECLARE_STATIC_MUTEX_(mutex) \
1663 extern ::testing::internal::Mutex mutex
1665 # define GTEST_DEFINE_STATIC_MUTEX_(mutex) \
1666 ::testing::internal::Mutex mutex(::testing::internal::Mutex::kStaticMutex)
1675 explicit GTestMutexLock(Mutex* mutex) argument
1930 GTestMutexLock(MutexBase* mutex) argument
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r600/
H A Dr600_pipe.h154 pipe_mutex mutex; member in struct:r600_pipe_fences
/external/chromium_org/third_party/npapi/npspy/extern/nspr/md/
H A D_os2.h182 CRITICAL_SECTION mutex; /* this is recursive on NT */ member in struct:_MDLock
184 HMTX mutex; /* this is recursive on NT */
371 #define _MD_FREE_LOCK(lock) (DosCloseEventSem(((PRAMSEM)(&((lock)->mutex)))->hevSem))
372 #define _MD_LOCK(lock) (SemRequest486(&((lock)->mutex), -1))
373 #define _MD_TEST_AND_LOCK(lock) (SemRequest486(&((lock)->mutex), -1),0)
379 SemReleasex86( &(lock)->mutex, 0 ); \
384 #define _MD_FREE_LOCK(lock) (DosCloseMutexSem((lock)->mutex))
385 #define _MD_LOCK(lock) (DosRequestMutexSem((lock)->mutex, SEM_INDEFINITE_WAIT))
386 #define _MD_TEST_AND_LOCK(lock) (DosRequestMutexSem((lock)->mutex, SEM_INDEFINITE_WAIT),0)
392 DosReleaseMutexSem((lock)->mutex); \
[all...]
H A D_win16.h154 PRUint32 mutex; member in struct:_MDLock
H A D_win95.h172 CRITICAL_SECTION mutex; /* this is recursive on NT */ member in struct:_MDLock
381 #define _MD_NEW_LOCK(lock) (InitializeCriticalSection(&((lock)->mutex)),(lock)->notified.length=0,(lock)->notified.link=NULL,PR_SUCCESS)
382 #define _MD_FREE_LOCK(lock) DeleteCriticalSection(&((lock)->mutex))
383 #define _MD_LOCK(lock) EnterCriticalSection(&((lock)->mutex))
384 #define _MD_TEST_AND_LOCK(lock) (EnterCriticalSection(&((lock)->mutex)),0)
H A D_winnt.h191 CRITICAL_SECTION mutex; /* this is recursive on NT */ member in struct:_MDLock
395 #define _MD_NEW_LOCK(lock) (InitializeCriticalSection(&((lock)->mutex)),PR_SUCCESS)
396 #define _MD_FREE_LOCK(lock) DeleteCriticalSection(&((lock)->mutex))
398 #define _MD_LOCK(lock) EnterCriticalSection(&((lock)->mutex))
399 #define _MD_TEST_AND_LOCK(lock) (TryEnterCriticalSection(&((lock)->mutex))== FALSE)
400 #define _MD_UNLOCK(lock) LeaveCriticalSection(&((lock)->mutex))
404 BOOL rv = TryEnterCriticalSection(&((lock)->mutex)); \
409 EnterCriticalSection(&((lock)->mutex)); \
413 #define _MD_UNLOCK(lock) LeaveCriticalSection(&((lock)->mutex))
/external/gtest/include/gtest/internal/
H A Dgtest-port.h1317 // MutexBase and Mutex implement mutex on pthreads-based platforms. They
1320 // Mutex mutex;
1322 // MutexLock lock(&mutex); // Acquires the mutex and releases it at the end
1327 // the following to define a static mutex:
1331 // You can forward declare a static mutex like this:
1335 // To create a dynamic mutex, just define an object of type Mutex.
1338 // Acquires this mutex.
1345 // Releases this mutex.
1350 // mutex whe
1413 GTestMutexLock(MutexBase* mutex) argument
[all...]
/external/mesa3d/src/gallium/drivers/r600/
H A Dr600_pipe.h154 pipe_mutex mutex; member in struct:r600_pipe_fences
/external/clang/test/SemaCXX/
H A Dwarn-thread-safety-analysis.cpp211 // expected-warning{{releasing mutex 'sls_mu' that was not held}}
217 // expected-warning{{acquiring mutex 'sls_mu' that is already held}}
222 sls_mu.Lock(); // expected-note {{mutex acquired here}}
223 } // expected-warning{{mutex 'sls_mu' is still held at the end of function}}
227 sls_mu.Lock(); // expected-note{{mutex acquired here}}
229 sls_mu2.Lock(); // expected-note{{mutex acquired here}}
230 } // expected-warning{{mutex 'sls_mu' is not held on every path through here}} \
231 // expected-warning{{mutex 'sls_mu2' is not held on every path through here}}
234 sls_mu.Lock(); // expected-note {{mutex acquired here}}
237 } // expected-warning{{mutex 'sls_m
1967 struct __attribute__((lockable)) mutex { struct in namespace:GoingNative
[all...]
/external/valgrind/main/helgrind/
H A Dhg_main.c1110 "granted on mutex/rwlock which is currently "
1123 "granted on mutex/wrlock which does not "
1243 lock_ga should refer to a standard mutex. */
1901 void* mutex, Word mbRec )
1905 (Int)tid, mbRec, (void*)mutex );
1908 (Addr)mutex, tid );
1914 void evh__HG_PTHREAD_MUTEX_DESTROY_PRE( ThreadId tid, void* mutex, argument
1922 (Int)tid, (void*)mutex, (Int)mutex_is_init );
1928 lk = map_locks_maybe_lookup( (Addr)mutex );
1931 /* We're destroying a mutex whic
1900 evh__HG_PTHREAD_MUTEX_INIT_POST( ThreadId tid, void* mutex, Word mbRec ) argument
1971 evh__HG_PTHREAD_MUTEX_LOCK_PRE( ThreadId tid, void* mutex, Word isTryLock ) argument
2387 evh__HG_PTHREAD_COND_WAIT_POST( ThreadId tid, void* cond, void* mutex, Bool timeout) argument
[all...]
/external/chromium_org/v8/src/
H A Dgdb-jit.cc2055 static base::LazyMutex mutex = LAZY_MUTEX_INITIALIZER; member in namespace:v8
2063 base::LockGuard<base::Mutex> lock_guard(mutex.Pointer());
2110 base::LockGuard<base::Mutex> lock_guard(mutex.Pointer());
2147 base::LockGuard<base::Mutex> lock_guard(mutex.Pointer());
/external/chromium_org/v8/src/heap/
H A Dspaces.h11 #include "src/base/platform/mutex.h"
1468 base::Mutex* mutex() { return &mutex_; } function in class:v8::internal::FreeListCategory
/external/qemu/distrib/sdl-1.2.15/src/stdlib/
H A DSDL_malloc.c145 etc is surrounded with either a pthread mutex or a win32
264 pthread or WIN32 mutex lock/unlock. (If set true, this can be
2008 If USE_LOCKS is defined, the "mutex" lock is acquired and released
2038 MLOCK_T mutex; /* locate lock among fields that rarely change */ member in struct:malloc_state
2157 #define PREACTION(M) ((GLOBALLY_INITIALIZE() || use_lock(M))? ACQUIRE_LOCK(&(M)->mutex) : 0)
2158 #define POSTACTION(M) { if (use_lock(M)) RELEASE_LOCK(&(M)->mutex); }
2500 INITIAL_LOCK(&gm->mutex);
4422 INITIAL_LOCK(&m->mutex);

Completed in 1012 milliseconds

1234567891011