/external/compiler-rt/lib/builtins/ |
atomic.c | 20 * To avoid needing a per-object lock, this code allocates an array of 22 * For operations that must be atomic on two locations, the lower lock is 49 // Platform-specific lock implementation. Falls back to spinlocks if none is 50 // defined. Each platform should define the Lock type, and corresponding 51 // lock() and unlock() functions. 58 typedef struct _usem Lock; 59 __inline static void unlock(Lock *l) { 65 __inline static void lock(Lock *l) { function 74 static Lock locks[SPINLOCK_COUNT] = { [0 ... SPINLOCK_COUNT-1] = {0,1,0} } 84 __inline static void lock(Lock *l) { function 97 __inline static void lock(Lock *l) { function [all...] |
/external/compiler-rt/lib/sanitizer_common/tests/ |
sanitizer_mutex_test.cc | 34 Lock l(mtx_); 62 typedef GenericScopedLock<MutexType> Lock;
|
/external/compiler-rt/lib/tsan/benchmarks/ |
vts_many_threads_bench.cc | 35 void Lock() { pthread_mutex_lock(&m_); } 64 mutexes[(offset + i) % kNumMutexes].Lock();
|
/external/compiler-rt/lib/tsan/rtl/ |
tsan_mutex.h | 48 void Lock(); 69 typedef GenericScopedLock<Mutex> Lock; 75 void Lock(MutexType t);
|
tsan_mutex.cc | 54 // Build the "can lock" adjacency matrix. 55 // If [i][j]==true, then one can lock mutex j while under mutex i. 105 Printf("Can lock graph:\n"); 112 Printf("Can lock graph closure:\n"); 135 void InternalDeadlockDetector::Lock(MutexType t) { 136 // Printf("LOCK %d @%zu\n", t, seq_ + 1); 156 Printf("ThreadSanitizer: can't lock %d while under %zu\n", 227 void Mutex::Lock() { 229 cur_thread()->internal_deadlock_detector.Lock(type_); 260 cur_thread()->internal_deadlock_detector.Lock(type_) [all...] |
/external/compiler-rt/lib/tsan/tests/unit/ |
tsan_mutex_test.cc | 32 Lock l(mtx_); 57 typedef GenericScopedLock<MutexType> Lock;
|
/external/swiftshader/src/D3D9/ |
Direct3DIndexBuffer9.cpp | 163 long Direct3DIndexBuffer9::Lock(unsigned int offset, unsigned int size, void **data, unsigned long flags) 169 if(offset == 0 && size == 0) // Lock whole buffer 194 buffer = indexBuffer->lock(sw::PUBLIC);
|
Direct3DVertexBuffer9.cpp | 182 long Direct3DVertexBuffer9::Lock(unsigned int offset, unsigned int size, void **data, unsigned long flags) 188 if(offset == 0 && size == 0) // Lock whole buffer 213 buffer = vertexBuffer->lock(sw::PUBLIC);
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
PseudoSourceValue.cpp | 29 sys::Mutex Lock; // Guards FSValues, but not the values inside it. 75 sys::ScopedLock locked(PG.Lock);
|
/external/toolchain-utils/ |
file_lock_machine.py | 4 """Script to lock/unlock machines.""" 60 """The description of the lock.""" 88 """File lock operation class.""" 139 with file_lock as lock: 140 if lock.IsLocked(): 189 class Lock(object): 190 """Lock class""" 199 with FileLock(self._lock_file) as lock: 200 if lock.exclusive: 202 'Exclusive lock already acquired by %s. Reason: %s' [all...] |
/external/webrtc/webrtc/base/ |
criticalsection.cc | 137 void GlobalLockPod::Lock() { 153 RTC_DCHECK_EQ(1, old_value) << "Unlock called without calling Lock first"; 160 GlobalLockScope::GlobalLockScope(GlobalLockPod* lock) 161 : lock_(lock) { 162 lock_->Lock();
|
/frameworks/native/libs/vr/libbufferhub/ |
ion_buffer.cpp | 198 int IonBuffer::Lock(uint32_t usage, int x, int y, int width, int height, 200 ATRACE_NAME("IonBuffer::Lock"); 202 "IonBuffer::Lock: handle=%p usage=%d x=%d y=%d width=%d height=%d " 207 buffer_->lock(usage, Rect(x, y, x + width, y + height), address); 218 "IonBuffer::Lock: handle=%p usage=%d x=%d y=%d width=%d height=%d",
|
/prebuilts/gdb/darwin-x86/lib/python2.7/multiprocessing/ |
__init__.py | 50 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Condition', 94 The managers methods such as `Lock()`, `Condition()` and `Queue()` 171 def Lock(): 173 Returns a non-recursive lock object 175 from multiprocessing.synchronize import Lock 176 return Lock() 180 Returns a recursive lock object 185 def Condition(lock=None): 190 return Condition(lock)
|
synchronize.py | 36 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Condition', 'Event' 141 # Non-recursive lock 144 class Lock(SemLock): 163 return '<Lock(owner=%s)>' % name 166 # Recursive lock 197 def __init__(self, lock=None): 198 self._lock = lock or RLock() 239 # release lock 251 # reacquire lock 256 assert self._lock._semlock._is_mine(), 'lock is not owned [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/multiprocessing/ |
__init__.py | 50 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Condition', 94 The managers methods such as `Lock()`, `Condition()` and `Queue()` 171 def Lock(): 173 Returns a non-recursive lock object 175 from multiprocessing.synchronize import Lock 176 return Lock() 180 Returns a recursive lock object 185 def Condition(lock=None): 190 return Condition(lock)
|
synchronize.py | 36 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Condition', 'Event' 141 # Non-recursive lock 144 class Lock(SemLock): 163 return '<Lock(owner=%s)>' % name 166 # Recursive lock 197 def __init__(self, lock=None): 198 self._lock = lock or RLock() 239 # release lock 251 # reacquire lock 256 assert self._lock._semlock._is_mine(), 'lock is not owned [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/multiprocessing/ |
__init__.py | 50 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Condition', 94 The managers methods such as `Lock()`, `Condition()` and `Queue()` 171 def Lock(): 173 Returns a non-recursive lock object 175 from multiprocessing.synchronize import Lock 176 return Lock() 180 Returns a recursive lock object 185 def Condition(lock=None): 190 return Condition(lock)
|
synchronize.py | 36 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Condition', 'Event' 141 # Non-recursive lock 144 class Lock(SemLock): 163 return '<Lock(owner=%s)>' % name 166 # Recursive lock 197 def __init__(self, lock=None): 198 self._lock = lock or RLock() 239 # release lock 251 # reacquire lock 256 assert self._lock._semlock._is_mine(), 'lock is not owned [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/multiprocessing/ |
__init__.py | 50 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Condition', 94 The managers methods such as `Lock()`, `Condition()` and `Queue()` 171 def Lock(): 173 Returns a non-recursive lock object 175 from multiprocessing.synchronize import Lock 176 return Lock() 180 Returns a recursive lock object 185 def Condition(lock=None): 190 return Condition(lock)
|
synchronize.py | 36 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Condition', 'Event' 141 # Non-recursive lock 144 class Lock(SemLock): 163 return '<Lock(owner=%s)>' % name 166 # Recursive lock 197 def __init__(self, lock=None): 198 self._lock = lock or RLock() 239 # release lock 251 # reacquire lock 256 assert self._lock._semlock._is_mine(), 'lock is not owned [all...] |
/toolchain/binutils/binutils-2.25/gold/ |
gold-threads.cc | 144 // Class Lock. 146 Lock::Lock() 160 Lock::~Lock() 259 Condvar::Condvar(Lock& lock) 260 : lock_(lock) 313 // A single lock which controls access to once_pointer. This is used 374 // If we are not using threads, we don't need to lock [all...] |
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_mutex.h | 29 void Lock() { 84 void Lock(); 103 void Lock() { 179 mu_->Lock();
|
/external/dng_sdk/source/ |
dng_mutex.cpp | 136 void dng_mutex::Lock () 161 DNG_REPORT ("Lock ordering violation."); 238 fMutex->Lock (); 271 fMutex->Lock ();
|
/external/gemmlowp/profiling/ |
instrumentation.h | 74 // GlobalLock<ProfilerLockId> is the profiler global lock: 76 // the profiler itself as it samples threads, all need to lock it. 79 // A very plain global lock. Templated in LockId so we can have multiple 89 static void Lock() { pthread_mutex_lock(Mutex()); } 93 // A very simple RAII helper to lock and unlock a GlobalLock 96 AutoGlobalLock() { GlobalLock<LockId>::Lock(); } 180 AutoGlobalLock<ProfilerLockId> lock; local 224 AutoGlobalLock<ProfilerLockId> lock; local
|
/external/lzma/CPP/Windows/ |
Synchronization.h | 47 WRes Lock() { return Event_Wait(&_object); }
90 WRes Lock(DWORD timeoutInterval = INFINITE)
121 CMutexLock(CMutex &object): _object(&object) { _object->Lock(); }
140 WRes Lock() { return Semaphore_Wait(&_object); }
|