/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/ |
nonmember_swap.pass.cpp | 24 void lock() {} function in struct:mutex
|
release.pass.cpp | 25 void lock() {++lock_count;} function in struct:mutex
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
mutex.py | 6 representing functions (or methods) waiting to acquire the lock. 9 implying it now has the lock. 12 for lock, where a function is called once the lock is aquired. 31 """Atomic test-and-set -- grab the lock if it is not set, 39 def lock(self, function, argument): member in class:mutex 40 """Lock a mutex, call the function with supplied argument
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
mutex.py | 6 representing functions (or methods) waiting to acquire the lock. 9 implying it now has the lock. 12 for lock, where a function is called once the lock is aquired. 31 """Atomic test-and-set -- grab the lock if it is not set, 39 def lock(self, function, argument): member in class:mutex 40 """Lock a mutex, call the function with supplied argument
|
/system/chre/util/tests/ |
lock_guard_test.cc | 27 void lock() { function in class:MockMutex 48 LockGuard<MockMutex> lock(mutex);
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
CycleDetectingLockFactoryTest.java | 28 import java.util.concurrent.locks.Lock; 91 // In the unittest, create each ordered factory with its own set of lock 102 lockA.lock(); 103 lockB.lock(); 109 lockB.lock(); 111 lockA.lock(); 120 lockA.lock(); 130 lockA.lock(); 136 lockA.lock(); 137 lockB.lock(); 509 final Lock lock; field in class:CycleDetectingLockFactoryTest.LockingThread [all...] |
/libcore/jsr166-tests/src/test/java/jsr166/ |
StampedLockTest.java | 13 import java.util.concurrent.locks.Lock; 34 final StampedLock lock; field in class:StampedLockTest.InterruptibleLockRunnable 35 InterruptibleLockRunnable(StampedLock l) { lock = l; } 37 lock.writeLockInterruptibly(); 46 final StampedLock lock; field in class:StampedLockTest.InterruptedLockRunnable 47 InterruptedLockRunnable(StampedLock l) { lock = l; } 49 lock.writeLockInterruptibly(); 54 * Releases write lock, checking isWriteLocked before and after 56 void releaseWriteLock(StampedLock lock, long s) { 57 assertTrue(lock.isWriteLocked()) 66 StampedLock lock; local 77 StampedLock lock = new StampedLock(); local 103 StampedLock lock = new StampedLock(); local 130 StampedLock lock = new StampedLock(); local 162 StampedLock lock = new StampedLock(); local 173 StampedLock lock = new StampedLock(); local 186 StampedLock lock = new StampedLock(); local 198 StampedLock lock = new StampedLock(); local 211 StampedLock lock = new StampedLock(); local 222 StampedLock lock = new StampedLock(); local 234 StampedLock lock = new StampedLock(); local 242 StampedLock lock = new StampedLock(); local 268 StampedLock lock = new StampedLock(); local 286 final StampedLock lock = new StampedLock(); local 306 final StampedLock lock = new StampedLock(); local 327 final StampedLock lock = new StampedLock(); local 347 final StampedLock lock = new StampedLock(); local 366 final StampedLock lock = new StampedLock(); local 379 final StampedLock lock = new StampedLock(); local 395 final StampedLock lock = new StampedLock(); local 411 final StampedLock lock = new StampedLock(); local 434 final StampedLock lock = new StampedLock(); local 455 final StampedLock lock = new StampedLock(); local 481 final StampedLock lock = new StampedLock(); local 503 final StampedLock lock = new StampedLock(); local 520 final StampedLock lock = new StampedLock(); local 536 final StampedLock lock = new StampedLock(); local 555 final StampedLock lock = new StampedLock(); local 576 final StampedLock lock = new StampedLock(); local 597 final StampedLock lock = new StampedLock(); local 619 StampedLock lock = new StampedLock(); local 634 StampedLock lock = new StampedLock(); local 647 StampedLock lock = new StampedLock(); local 686 StampedLock lock = new StampedLock(); local 703 final StampedLock lock = new StampedLock(); local 724 StampedLock lock = new StampedLock(); local 759 StampedLock lock = new StampedLock(); local 801 StampedLock lock = new StampedLock(); local 843 Lock lock = sl.asWriteLock(); local 855 Lock lock = sl.asReadLock(); local 866 Lock lock = sl.asReadWriteLock().writeLock(); local 878 Lock lock = sl.asReadWriteLock().readLock(); local [all...] |
/bionic/libc/bionic/ |
pthread_spinlock.cpp | 37 Lock lock; member in struct:pthread_spinlock_internal_t 46 static inline pthread_spinlock_internal_t* __get_internal_spinlock(pthread_spinlock_t* lock) { 47 return reinterpret_cast<pthread_spinlock_internal_t*>(lock); 51 pthread_spinlock_internal_t* lock = __get_internal_spinlock(lock_interface); local 52 lock->lock.init(pshared); 57 pthread_spinlock_internal_t* lock = __get_internal_spinlock(lock_interface); local 58 return lock->lock.trylock() ? 0 : EBUSY 62 pthread_spinlock_internal_t* lock = __get_internal_spinlock(lock_interface); local 67 pthread_spinlock_internal_t* lock = __get_internal_spinlock(lock_interface); local 78 pthread_spinlock_internal_t* lock = __get_internal_spinlock(lock_interface); local [all...] |
/development/ndk/platforms/android-9/include/linux/ |
blockgroup_lock.h | 21 spinlock_t lock; member in struct:bgl_lock 28 #define sb_bgl_lock(sb, block_group) (&(sb)->s_blockgroup_lock.locks[(block_group) & (NR_BG_LOCKS-1)].lock)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
thread_cthread.h | 63 * Lock support.
68 mutex_t lock;
local 74 lock = mutex_alloc();
75 if (mutex_init(lock)) {
77 free((void *) lock);
78 lock = 0;
80 dprintf(("PyThread_allocate_lock() -> %p\n", lock));
81 return (PyThread_type_lock) lock;
85 PyThread_free_lock(PyThread_type_lock lock)
87 dprintf(("PyThread_free_lock(%p) called\n", lock));
[all...] |
/external/ImageMagick/Magick++/lib/ |
Thread.cpp | 83 // Lock mutex 84 void Magick::MutexLock::lock(void) function in class:Magick::MutexLock 92 throwExceptionExplicit(MagickCore::OptionError,"mutex lock failed", 98 throwExceptionExplicit(MagickCore::OptionError,"mutex lock failed");
|
/external/boringssl/src/crypto/pool/ |
internal.h | 37 CRYPTO_MUTEX lock; member in struct:crypto_buffer_pool_st
|
/external/deqp/framework/delibs/decpp/ |
deMutex.hpp | 33 * \brief Mutual exclusion lock 35 * Mutex class provides standard mutual exclusion lock functionality. 43 void lock (void) throw(); 55 * \brief Scoped mutex lock. 57 * ScopedLock provides helper for maintaining Mutex lock for the duration 58 * of current scope. The lock is acquired in constructor and released 77 * \brief Acquire mutex lock. 83 * lock is released. 86 * succeed and increment lock count. 88 inline void Mutex::lock (void) throw( function in class:de::Mutex [all...] |
/external/libcxx/src/ |
shared_mutex.cpp | 27 __shared_mutex_base::lock() function in class:__shared_mutex_base 108 void shared_timed_mutex::lock() { return __base.lock(); } function in class:shared_timed_mutex
|
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.guard/ |
variadic_adopt_lock.pass.cpp | 28 void lock() { assert(!locked); locked = true; } function in struct:TestMutex 45 m1.lock(); m2.lock(); 55 m1.lock(); m2.lock(); m3.lock();
|
/external/parameter-framework/asio-1.10.6/include/asio/detail/ |
posix_mutex.hpp | 45 // Lock the mutex. 46 void lock() function in class:asio::detail::posix_mutex
|
/external/protobuf/editors/ |
protobuf-mode.el | 158 (defconst protobuf-font-lock-keywords-1 (c-lang-const c-matchers-1 protobuf) 161 (defconst protobuf-font-lock-keywords-2 (c-lang-const c-matchers-2 protobuf) 164 (defconst protobuf-font-lock-keywords-3 (c-lang-const c-matchers-3 protobuf) 167 (defvar protobuf-font-lock-keywords protobuf-font-lock-keywords-3
|
/external/swiftshader/src/Common/ |
Resource.cpp | 37 void *Resource::lock(Accessor claimer) function in class:sw::Resource 39 criticalSection.lock(); 48 criticalSection.lock(); 60 void *Resource::lock(Accessor relinquisher, Accessor claimer) function in class:sw::Resource 62 criticalSection.lock(); 94 criticalSection.lock(); 108 criticalSection.lock(); 133 criticalSection.lock(); 161 criticalSection.lock();
|
/external/syslinux/com32/gpllib/dmi/ |
dmi_chassis.c | 74 static const char *lock[] = { local 79 return lock[code];
|
/external/valgrind/helgrind/tests/ |
tc04_free_lock.c | 7 /* Delete memory that has a held lock and see what happens. */ 10 pthread_mutex_t lock; int morestuff[2000]; } XX; member in struct:__anon35966 20 pthread_mutex_init( &xx->lock, NULL ); 22 pthread_mutex_lock( &xx->lock );
|
/external/webrtc/webrtc/base/ |
sigslot.cc | 24 void multi_threaded_global::lock() { function in class:sigslot::multi_threaded_global 44 void multi_threaded_local::lock() { function in class:sigslot::multi_threaded_local
|
/frameworks/av/include/private/media/ |
AudioEffectShared.h | 37 Mutex lock; member in struct:android::effect_param_cblk_t 43 : lock(Mutex::SHARED), clientIndex(0), serverIndex(0) {}
|
/frameworks/rs/ |
rsMutex.cpp | 38 bool Mutex::lock() { function in class:android::renderscript::Mutex
|
/hardware/intel/common/wrs_omxil_core/utils/inc/ |
thread.h | 55 pthread_mutex_t lock; member in class:Thread
|
/hardware/qcom/gps/msm8909/utils/ |
LocSharedLock.h | 37 // one client who need to share the same lock, but it is not predictable 38 // which of these clients is to last to go away. This shared lock deletes 40 // this share lock's share() method has to be called, so that the obj 49 // following client(s) are to *share()* this lock created by the first client 51 // whe a client no longer needs this shared lock, drop() shall be called. 53 // locking the lock to enter critical section 54 inline void lock() { pthread_mutex_lock(&mMutex); } function in class:LocSharedLock 55 // unlocking the lock to leave the critical section
|