Home
last modified time | relevance | path

Searched full:acquire (Results 1 – 25 of 1126) sorted by relevance

12345678910>>...46

/third_party/python/Lib/test/
Dlock_tests.py109 lock.acquire()
115 lock.acquire()
120 lock.acquire()
126 self.assertTrue(lock.acquire(False))
131 lock.acquire()
134 result.append(lock.acquire(False))
141 lock.acquire()
144 lock.acquire()
158 lock.acquire()
176 lock.acquire()
[all …]
Dtest_threadsignals.py50 signalled_all.acquire()
52 signalled_all.acquire()
99 lock.acquire()
102 self.assertRaises(KeyboardInterrupt, lock.acquire, timeout=5)
105 # We want to assert that lock.acquire() was interrupted because
107 # after timeout return of lock.acquire() (which can fool assertRaises).
133 rlock.acquire()
137 # Wait until we can't acquire it without blocking...
138 while rlock.acquire(blocking=False):
143 self.assertRaises(KeyboardInterrupt, rlock.acquire, timeout=5)
[all …]
Dtest_thread.py31 self.done_mutex.acquire()
69 self.done_mutex.acquire()
105 self.done_mutex.acquire()
114 mut.acquire()
119 mut.acquire()
148 started.acquire()
150 started.acquire()
165 self.checkout_mutex.acquire()
168 self.checkin_mutex.acquire()
176 self.checkout_mutex.acquire()
[all …]
/third_party/python/Lib/test/test_asyncio/
Dtest_locks.py33 await lock.acquire()
90 self.assertTrue(await lock.acquire())
93 if await lock.acquire():
98 if await lock.acquire():
103 if await lock.acquire():
139 self.assertTrue(await lock.acquire())
141 task = asyncio.create_task(lock.acquire())
150 # - B is blocked in acquire()
151 # - C is blocked in acquire()
165 await lock.acquire()
[all …]
/third_party/python/Lib/multiprocessing/
Dsynchronize.py91 self.acquire = self._semlock.acquire
236 self.acquire = self._lock.acquire
249 'must acquire() condition before using wait()'
261 return self._wait_semaphore.acquire(True, timeout)
268 self._lock.acquire()
272 assert not self._wait_semaphore.acquire(
273 False), ('notify: Should not have been able to acquire '
278 while self._woken_count.acquire(False):
279 res = self._sleeping_count.acquire(False)
280 assert res, ('notify: Bug in sleeping_count.acquire'
[all …]
Dsharedctypes.py80 if not hasattr(lock, 'acquire'):
81 raise AttributeError("%r has no method 'acquire'" % lock)
94 if not hasattr(lock, 'acquire'):
95 raise AttributeError("%r has no method 'acquire'" % lock)
159 self.acquire()
165 self.acquire()
189 self.acquire = self._lock.acquire
/third_party/skia/include/private/
DSkSpinlock.h19 void acquire() SK_ACQUIRE() { in acquire() function
20 // To act as a mutex, we need an acquire barrier when we acquire the lock. in acquire()
27 // Acquire the lock or fail (quickly). Lets the caller decide to do something other than wait.
29 // To act as a mutex, we need an acquire barrier when we acquire the lock. in tryAcquire()
50 SkAutoSpinlock(SkSpinlock& mutex) SK_ACQUIRE(mutex) : fSpinlock(mutex) { fSpinlock.acquire(); } in SkAutoSpinlock()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DMutex.h32 /// Initializes the lock but doesn't acquire it. if \p recursive is set
34 /// also more likely to deadlock (same thread can't acquire more than
48 /// Attempts to unconditionally acquire the lock. If the lock is held by
49 /// another thread, this method will wait until it can acquire the lock.
51 /// @brief Unconditionally acquire the lock.
52 bool acquire();
55 /// thread, the lock is released allowing other threads to acquire the
61 /// Attempts to acquire the lock without blocking. If the lock is not
66 /// @brief Try to acquire the lock.
101 return impl.acquire(); in lock()
/third_party/python/Lib/asyncio/
Dlocks.py15 await self.acquire()
32 acquire() and release(). When the state is unlocked, acquire()
34 state is locked, acquire() blocks until a call to release() in
35 another coroutine changes it to unlocked, then the acquire() call
41 When more than one coroutine is blocked in acquire() waiting for
44 is blocked in acquire() is being processed.
46 acquire() is a coroutine and should be called with 'await'.
55 await lock.acquire()
71 await lock.acquire()
93 async def acquire(self): member in Lock
[all …]
/third_party/vk-gl-cts/external/vulkan-docs/src/appendices/
DVK_NV_acquire_winrt_display.adoc23 …crosoft.com/en-us/uwp/api/windows.devices.display.core.displaymanager.tryacquiretarget["`Acquire`"]
31 An application's attempt to acquire is denied if a different application has
43 acquire and release functionality is called "`WinRT`".
59 3) Should the acquire command be platform-independent named
65 The inputs to the Acquire command are all Vulkan types.
68 platform-independent acquire command.
70 The X11 acquire command does need to accept a platform-specific parameter.
71 This could be handled by adding to a platform-independent acquire command a
80 platform-specific acquire function.
DVK_NV_acquire_winrt_display.txt23 …crosoft.com/en-us/uwp/api/windows.devices.display.core.displaymanager.tryacquiretarget["`Acquire`"]
31 An application's attempt to acquire is denied if a different application has
43 acquire and release functionality is called "`WinRT`".
59 3) Should the acquire command be platform-independent named
65 The inputs to the Acquire command are all Vulkan types.
68 platform-independent acquire command.
70 The X11 acquire command does need to accept a platform-specific parameter.
71 This could be handled by adding to a platform-independent acquire command a
80 platform-specific acquire function.
/third_party/python/Doc/library/
Dasyncio-sync.rst61 await lock.acquire()
70 .. coroutinemethod:: acquire()
72 Acquire the lock.
77 When more than one coroutine is blocked in :meth:`acquire`
204 await cond.acquire()
210 .. coroutinemethod:: acquire()
212 Acquire the underlying lock.
277 :meth:`acquire` call and incremented by each :meth:`release` call.
278 The counter can never go below zero; when :meth:`acquire` finds
303 await sem.acquire()
[all …]
Dthreading.rst218 (:meth:`Lock.acquire`, :meth:`RLock.acquire`, :meth:`Condition.wait`, etc.).
490 in the unlocked state. It has two basic methods, :meth:`~Lock.acquire` and
491 :meth:`~Lock.release`. When the state is unlocked, :meth:`~Lock.acquire`
493 :meth:`~Lock.acquire` blocks until a call to :meth:`~Lock.release` in another
494 thread changes it to unlocked, then the :meth:`~Lock.acquire` call resets it
502 When more than one thread is blocked in :meth:`~Lock.acquire` waiting for the
513 lock, subsequent attempts to acquire it block, until it is released; any
521 .. method:: acquire(blocking=True, timeout=-1)
523 Acquire a lock, blocking or non-blocking.
579 To lock the lock, a thread calls its :meth:`~RLock.acquire` method; this
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DAtomicOrdering.h31 acquire = 2, enumerator
55 /// \-->consume-->acquire--/
61 Acquire = 4, enumerator
82 "consume", "acquire", "release", in toIRString()
96 /* acquire */ { true, true, true, true, false, false, false, false}, in isStrongerThan()
111 /* acquire */ { true, true, true, true, true, false, false, false}, in isAtLeastOrStrongerThan()
128 return isAtLeastOrStrongerThan(ao, AtomicOrdering::Acquire); in isAcquireOrStronger()
141 /* acquire */ AtomicOrderingCABI::acquire, in toCABI()
DRWMutex.h38 /// Initializes the lock but doesn't acquire it.
57 /// Attempts to unconditionally acquire the lock in reader mode. If the
58 /// lock is held by a writer, this method will wait until it can acquire
61 /// Unconditionally acquire the lock in reader mode.
69 /// Attempts to unconditionally acquire the lock in reader mode. If the
71 /// acquire the lock.
73 /// Unconditionally acquire the lock in writer mode.
/third_party/node/deps/v8/src/codegen/riscv64/
Dmacro-assembler-riscv64.cc164 Register scratch = temps.Acquire(); in RecordWriteField()
256 Register scratch = temps.Acquire(); in CallRecordWriteStub()
279 Register temp = temps.Acquire(); in RecordWrite()
304 Register temp = temps.Acquire(); in RecordWrite()
363 Register scratch = temps.Acquire(); in Add32()
401 Register scratch = temps.Acquire(); in Add64()
437 Register scratch = temps.Acquire(); in Sub32()
487 Register scratch = temps.Acquire(); in Sub64()
493 Register scratch = temps.Acquire(); in Sub64()
506 Register scratch = temps.Acquire(); in Mul32()
[all …]
/third_party/python/Lib/
Dthreading.py94 thread has acquired a reentrant lock, the same thread may acquire it again
107 thread has acquired a reentrant lock, the same thread may acquire it
138 def acquire(self, blocking=True, timeout=-1): member in _RLock
139 """Acquire a lock, blocking or non-blocking.
168 rc = self._block.acquire(blocking, timeout)
174 __enter__ = acquire
205 self._block.acquire()
240 # Export the lock's acquire() and release() methods
241 self.acquire = lock.acquire
245 # release() and acquire() on the lock). Ditto for _is_owned().
[all …]
/third_party/spirv-tools/source/val/
Dvalidate_memory_semantics.cpp60 value & uint32_t(spv::MemorySemanticsMask::Acquire | in ValidateMemorySemantics()
70 "set: Acquire, Release, AcquireRelease or " in ValidateMemorySemantics()
151 !(value & uint32_t(spv::MemorySemanticsMask::Acquire | in ValidateMemorySemantics()
155 << ": MakeVisibleKHR Memory Semantics also requires either Acquire " in ValidateMemorySemantics()
180 "of the following bits set: Acquire, Release, " in ValidateMemorySemantics()
218 (value & uint32_t(spv::MemorySemanticsMask::Acquire) || in ValidateMemorySemantics()
221 << "Memory Semantics Acquire and AcquireRelease cannot be used " in ValidateMemorySemantics()
248 (value & uint32_t(spv::MemorySemanticsMask::Acquire) || in ValidateMemorySemantics()
254 "Acquire, AcquireRelease and SequentiallyConsistent"; in ValidateMemorySemantics()
/third_party/skia/third_party/externals/sfntly/cpp/src/test/
Dlock_test.cc25 // Basic test to make sure that Acquire()/Unlock()/Try() don't crash
33 lock_->Acquire(); in ThreadMain()
38 lock_->Acquire(); in ThreadMain()
70 lock.Acquire(); in BasicLockTest()
75 lock.Acquire(); in BasicLockTest()
88 lock.Acquire(); in BasicLockTest()
170 lock->Acquire(); in DoStuff()
/third_party/jerryscript/docs/
D16.MIGRATION-GUIDE.md69 // create or acquire value
83 // create or acquire value
98 ... // create or acquire value
117 // create or acquire value
134 // create or acquire value
157 // create or acquire value
171 // create or acquire value
186 // create or acquire value
206 // create or acquire value
223 // create or acquire value
[all …]
/third_party/python/Lib/test/test_importlib/
Dtest_locks.py23 # acquire(blocking=False) unsupported
28 # acquire(timeout=...) unsupported
70 """Try to acquire the lock. Return True on success,
73 lock.acquire()
96 # second acquire() call. It may be several of them, because the
/third_party/ltp/testcases/misc/lvm/
Dprepare_lvm.sh46 LVM_DEV1=`tst_device acquire 1040 "$LVM_IMGDIR/lvm_pv1.img"`
48 LVM_DEV2=`tst_device acquire 1040 "$LVM_IMGDIR/lvm_pv2.img"`
54 LVM_DEV3=`tst_device acquire $DEVSIZE "$LVM_IMGDIR/lvm_pv3.img"`
56 LVM_DEV4=`tst_device acquire $DEVSIZE "$LVM_IMGDIR/lvm_pv4.img"`
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/
Dassertions.xml13 acquire the lock if a writer holds the lock or if writers of
15 otherwise, the calling thread shall acquire the lock.
21 the calling thread shall not acquire the lock if a writer holds the lock or
23 the lock; otherwise, the calling thread shall acquire the lock.
/third_party/python/Modules/_multiprocessing/clinic/
Dsemaphore.c.h8 "acquire($self, /, block=True, timeout=None)\n"
11 "Acquire the semaphore/lock.");
14 …{"acquire", _PyCFunction_CAST(_multiprocessing_SemLock_acquire), METH_FASTCALL|METH_KEYWORDS, _mul…
25 static _PyArg_Parser _parser = {NULL, _keywords, "acquire", 0}; in _multiprocessing_SemLock_acquire()
82 "acquire($self, /, block=True, timeout=None)\n"
85 "Acquire the semaphore/lock.");
88 …{"acquire", _PyCFunction_CAST(_multiprocessing_SemLock_acquire), METH_FASTCALL|METH_KEYWORDS, _mul…
99 static _PyArg_Parser _parser = {NULL, _keywords, "acquire", 0}; in _multiprocessing_SemLock_acquire()
257 "Num of `acquire()`s minus num of `release()`s for this process.");
/third_party/node/deps/v8/src/codegen/loong64/
Dmacro-assembler-loong64.cc153 Register scratch = temps.Acquire(); in RecordWriteField()
236 Register scratch = temps.Acquire(); in CallRecordWriteStub()
295 Register scratch = temps.Acquire(); in CallRecordWriteStub()
352 Register scratch = temps.Acquire(); in CallRecordWriteStub()
369 Register scratch = temps.Acquire(); in CallRecordWriteStub()
387 Register scratch = temps.Acquire(); in CallRecordWriteStub()
416 Register scratch = temps.Acquire(); in CallRecordWriteStub()
422 Register scratch = temps.Acquire(); in CallRecordWriteStub()
435 Register scratch = temps.Acquire(); in CallRecordWriteStub()
448 Register scratch = temps.Acquire(); in CallRecordWriteStub()
[all …]

12345678910>>...46