| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
| H A D | UniqueLock.h | 10 // This file defines a guard for a block of code that ensures a Mutex is locked 23 /// an associated mutex, which is guaranteed to be locked upon creation 30 bool locked; member in llvm::unique_lock 35 unique_lock() : M(nullptr), locked(false) {} in unique_lock() 36 explicit unique_lock(MutexT &m) : M(&m), locked(true) { M->lock(); } in unique_lock() 42 locked = o.locked; in operator =() 44 o.locked = false; in operator =() 50 assert(!locked && "mutex already locked!"); in lock() [all...] |
| /third_party/python/Python/ |
| H A D | ceval_gil.h | 14 - The GIL is just a boolean variable (locked) whose access is protected 96 gil->locked = uninitialized; in _gil_initialize() 102 return (_Py_atomic_load_explicit(&gil->locked, _Py_memory_order_acquire) >= 0); in gil_created() 116 _Py_ANNOTATE_RWLOCK_CREATE(&gil->locked); in create_gil() 117 _Py_atomic_store_explicit(&gil->locked, 0, _Py_memory_order_release); in create_gil() 131 _Py_atomic_store_explicit(&gil->locked, -1, in destroy_gil() 133 _Py_ANNOTATE_RWLOCK_DESTROY(&gil->locked); in destroy_gil() 139 _Py_ANNOTATE_RWLOCK_DESTROY(&gil->locked); in recreate_gil() 150 if (!_Py_atomic_load_relaxed(&gil->locked)) { in drop_gil() 151 Py_FatalError("drop_gil: GIL is not locked"); in drop_gil() [all...] |
| H A D | thread_nt.h | 31 int locked; member 47 m->locked = 0; in AllocNonRecursiveMutex() 71 while (mutex->locked) { in EnterNonRecursiveMutex() 81 while (mutex->locked) { in EnterNonRecursiveMutex() 94 if (!mutex->locked) { in EnterNonRecursiveMutex() 95 mutex->locked = 1; in EnterNonRecursiveMutex() 110 mutex->locked = 0; in LeaveNonRecursiveMutex()
|
| H A D | thread_pthread.h | 182 * -> a thread tries to lock a mutex it already has locked 183 * -> a thread tries to unlock a mutex locked by a different thread 188 * The pthread_lock struct implements a Python lock as a "locked?" bit 195 char locked; /* 0=unlocked, 1=locked */ member 196 /* a <cond, mutex> pair to handle an acquire of a locked lock */ 584 lock->locked = 0; in PyThread_allocate_lock() 650 if (thelock->locked == 0) { in PyThread_acquire_lock_timed() 660 /* mut must be locked by me -- part of the condition in PyThread_acquire_lock_timed() 681 if (intr_flag && status == 0 && thelock->locked) { in PyThread_acquire_lock_timed() [all...] |
| /third_party/mesa3d/src/mesa/main/ |
| H A D | hash.h | 197 void *userData, bool locked) in _mesa_HashWalkMaybeLocked() 199 if (locked) in _mesa_HashWalkMaybeLocked() 207 bool locked) in _mesa_HashLookupMaybeLocked() 209 if (locked) in _mesa_HashLookupMaybeLocked() 218 bool locked) in _mesa_HashInsertMaybeLocked() 220 if (locked) in _mesa_HashInsertMaybeLocked() 227 _mesa_HashLockMaybeLocked(struct _mesa_HashTable *table, bool locked) in _mesa_HashLockMaybeLocked() argument 229 if (!locked) in _mesa_HashLockMaybeLocked() 234 _mesa_HashUnlockMaybeLocked(struct _mesa_HashTable *table, bool locked) in _mesa_HashUnlockMaybeLocked() argument 236 if (!locked) in _mesa_HashUnlockMaybeLocked() 195 _mesa_HashWalkMaybeLocked(const struct _mesa_HashTable *table, void (*callback)(void *data, void *userData), void *userData, bool locked) _mesa_HashWalkMaybeLocked() argument 206 _mesa_HashLookupMaybeLocked(struct _mesa_HashTable *table, GLuint key, bool locked) _mesa_HashLookupMaybeLocked() argument 216 _mesa_HashInsertMaybeLocked(struct _mesa_HashTable *table, GLuint key, void *data, GLboolean isGenName, bool locked) _mesa_HashInsertMaybeLocked() argument [all...] |
| H A D | dlist.h | 111 _mesa_lookup_list(struct gl_context *ctx, GLuint list, bool locked); 135 bool locked);
|
| /third_party/node/test/parallel/ |
| H A D | test-whatwg-webstreams-transfer.js | 102 assert(!data.locked); 104 assert(data.locked); 112 assert(readable.locked); 152 assert(!data.locked); 154 assert(data.locked); 162 assert(readable.locked); 194 assert(!data.locked); 203 assert(!data.locked); 205 assert(data.locked); 213 assert(writable.locked); [all...] |
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/MCJIT/ |
| H A D | MCJIT.cpp | 91 std::lock_guard<sys::Mutex> locked(lock); in ~MCJIT() 103 std::lock_guard<sys::Mutex> locked(lock); in addModule() 112 std::lock_guard<sys::Mutex> locked(lock); in removeModule() 139 std::lock_guard<sys::Mutex> locked(lock); in setObjectCache() 146 std::lock_guard<sys::Mutex> locked(lock); in emitObject() 188 std::lock_guard<sys::Mutex> locked(lock); in generateCodeForModule() 237 std::lock_guard<sys::Mutex> locked(lock); in finalizeLoadedModules() 253 std::lock_guard<sys::Mutex> locked(lock); in finalizeObject() 268 std::lock_guard<sys::Mutex> locked(lock); in finalizeModule() 295 std::lock_guard<sys::Mutex> locked(loc in findModuleForSymbol() [all...] |
| /third_party/backends/backend/ |
| H A D | umax_pp_mid.c | 61 /* lock or UMAX1220P_OK if it is locked */ 62 static int locked = 0; variable 80 if ((fd > 0) && (!locked)) in lock_parport() 95 locked = 1; in lock_parport() 98 locked = 1; in lock_parport() 112 if ((fd > 0) && (locked)) in unlock_parport() 121 locked = 1; in unlock_parport() 125 locked = 0; in unlock_parport() 219 locked = 1; in sanei_umax_pp_attach()
|
| /third_party/python/Lib/test/test_asyncio/ |
| H A D | test_locks.py | 13 r'(set|unset|locked|unlocked|filling|draining|resetting|broken)' 34 self.assertTrue(repr(lock).endswith('[locked]>')) 46 self.assertFalse(lock.locked()) 77 self.assertFalse(lock.locked()) 84 self.assertFalse(lock.locked()) 175 self.assertTrue(lock.locked()) 189 self.assertFalse(lock.locked()) 243 self.assertTrue(lock.locked()) 256 self.assertTrue(lock.locked()) 270 self.assertTrue(lock.locked()) [all...] |
| H A D | test_pep492.py | 55 self.assertFalse(lock.locked()) 58 self.assertTrue(lock.locked()) 60 self.assertTrue(lock.locked()) 61 self.assertFalse(lock.locked()) 65 self.assertFalse(primitive.locked()) 77 self.assertFalse(lock.locked()) 87 self.assertFalse(primitive.locked())
|
| /third_party/python/Lib/asyncio/ |
| H A D | locks.py | 28 by a particular coroutine when locked. A primitive lock is in one 29 of two states, 'locked' or 'unlocked'. 33 changes the state to locked and returns immediately. When the 34 state is locked, acquire() blocks until a call to release() in 36 resets it to locked and returns. The release() method should only 37 be called in the locked state; it changes the state to unlocked 70 if not lock.locked(): 84 extra = 'locked' if self._locked else 'unlocked' 89 def locked(self): member in Lock 97 locked an 359 def locked(self): global() member in Semaphore [all...] |
| /third_party/ninja/src/ |
| H A D | line_printer.cc | 150 void LinePrinter::SetConsoleLocked(bool locked) { 151 if (locked == console_locked_) 154 if (locked) 157 console_locked_ = locked; 159 if (!locked) {
|
| /third_party/python/Modules/ |
| H A D | _queuemodule.c | 29 int locked; member 56 if (self->locked > 0) in simplequeue_dealloc() 129 if (self->locked) { in _queue_SimpleQueue_put_impl() 131 self->locked = 0; in _queue_SimpleQueue_put_impl() 266 self->locked = 1; in _queue_SimpleQueue_get_impl() 279 if (self->locked) { in _queue_SimpleQueue_get_impl() 281 self->locked = 0; in _queue_SimpleQueue_get_impl()
|
| H A D | _threadmodule.c | 47 char locked; /* for sanity checking */ member 66 if (self->locked) in lock_dealloc() 185 self->locked = 1; in lock_PyThread_acquire_lock() 194 locked (even by the same thread), waiting for another thread to release\n\ 203 /* Sanity check: the lock must be locked */ in lock_PyThread_release_lock() 204 if (!self->locked) { in lock_PyThread_release_lock() 210 self->locked = 0; in lock_PyThread_release_lock() 219 the lock to acquire the lock. The lock must be in the locked state,\n\ 220 but it needn't be locked by the same thread that unlocks it."); 225 return PyBool_FromLong((long)self->locked); in lock_locked_lock() [all...] |
| /third_party/skia/third_party/externals/abseil-cpp/absl/base/ |
| H A D | spinlock_test_common.cc | 224 static void NotifyThenLock(Notification* locked, SpinLock* spinlock, in TEST() 226 locked->WaitForNotification(); // Wait for LockThenWait() to hold "s". in TEST() 231 static void LockThenWait(Notification* locked, SpinLock* spinlock, in TEST() 234 locked->Notify(); in TEST() 239 Notification locked; in TEST() local 244 std::thread(Helper::LockThenWait, &locked, spinlock, &counter)); in TEST() 247 std::thread(Helper::NotifyThenLock, &locked, spinlock, &counter)); in TEST()
|
| /third_party/node/test/fixtures/wpt/streams/resources/ |
| H A D | rs-test-templates.js | 14 assert_equals(typeof rs.locked, 'boolean', 'has a boolean locked getter'); 58 assert_false(rs.locked, 'locked getter should return false'); 60 }, label + ': locked should be false'); 126 assert_false(rs.locked, 'locked getter should return false'); 127 }, label + ': locked should be false'); 137 const reader = rs.getReader(); // Calling getReader() twice does not throw (the stream is not locked). 205 assert_true(stream.locked, 'locke [all...] |
| /third_party/alsa-lib/src/pcm/ |
| H A D | pcm_direct.h | 138 int locked[DIRECT_IPC_SEMS]; /* local lock counter */ member 291 dmix->locked[sem_num]++; in snd_pcm_direct_semaphore_down() 302 dmix->locked[sem_num]--; in snd_pcm_direct_semaphore_up() 310 if (dmix->locked[sem_num] != 1) { in snd_pcm_direct_semaphore_final() 311 SNDMSG("invalid semaphore count to finalize %d: %d", sem_num, dmix->locked[sem_num]); in snd_pcm_direct_semaphore_final()
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/ |
| H A D | GDBRegistrationListener.cpp | 138 std::lock_guard<llvm::sys::Mutex> locked(*JITDebugLock); in ~GDBJITRegistrationListener() 162 std::lock_guard<llvm::sys::Mutex> locked(*JITDebugLock); in notifyObjectLoaded() 181 std::lock_guard<llvm::sys::Mutex> locked(*JITDebugLock); in notifyFreeingObject()
|
| /third_party/python/Lib/test/ |
| H A D | test_contextlib.py | 392 def boilerPlate(self, lock, locked): 393 self.assertFalse(locked()) 395 self.assertTrue(locked()) 396 self.assertFalse(locked()) 399 self.assertTrue(locked()) 401 self.assertFalse(locked()) 405 self.boilerPlate(lock, lock.locked) 413 def locked(): function 415 self.boilerPlate(lock, locked) 419 def locked() function 429 def locked(): global() function [all...] |
| /third_party/ltp/testcases/kernel/syscalls/process_madvise/ |
| H A D | process_madvise.h | 31 int locked; member 92 mapping->locked = value; in read_address_mapping()
|
| /third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/util/ |
| H A D | UnicodeMap.java | 64 private volatile transient boolean locked; field in UnicodeMap 78 if (locked) { in clear() 79 throw new UnsupportedOperationException("Attempt to modify locked object"); in clear() 141 that.locked = false; in cloneAsThawed() 296 if (locked) { in _put() 297 throw new UnsupportedOperationException("Attempt to modify locked object"); in _put() 410 if (locked) { in put() 411 throw new UnsupportedOperationException("Attempt to modify locked object"); in put() 455 if (locked) { in putAll() 456 throw new UnsupportedOperationException("Attempt to modify locked objec in putAll() [all...] |
| /third_party/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/ |
| H A D | UnicodeMap.java | 61 private volatile transient boolean locked; field in UnicodeMap 75 if (locked) { in clear() 76 throw new UnsupportedOperationException("Attempt to modify locked object"); in clear() 138 that.locked = false; in cloneAsThawed() 293 if (locked) { in _put() 294 throw new UnsupportedOperationException("Attempt to modify locked object"); in _put() 407 if (locked) { in put() 408 throw new UnsupportedOperationException("Attempt to modify locked object"); in put() 452 if (locked) { in putAll() 453 throw new UnsupportedOperationException("Attempt to modify locked objec in putAll() [all...] |
| /third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/ |
| H A D | Image9.cpp | 502 D3DLOCKED_RECT locked; in loadData() local 503 ANGLE_TRY(lock(GetImplAs<Context9>(context), &locked, lockRect)); in loadData() 507 static_cast<uint8_t *>(locked.pBits), locked.Pitch, 0); in loadData() 541 D3DLOCKED_RECT locked; in loadCompressedData() local 542 ANGLE_TRY(lock(GetImplAs<Context9>(context), &locked, lockRect)); in loadCompressedData() 546 static_cast<uint8_t *>(locked.pBits), locked.Pitch, 0); in loadCompressedData()
|
| /third_party/skia/src/gpu/ |
| H A D | GrManagedResource.h | 60 SkAutoMutexExclusive locked(fLock); in add() 65 SkAutoMutexExclusive locked(fLock); in remove()
|