Home
last modified time | relevance | path

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

12345678910>>...47

/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.py47 signalled_all.acquire()
49 signalled_all.acquire()
96 lock.acquire()
99 self.assertRaises(KeyboardInterrupt, lock.acquire, timeout=5)
102 # We want to assert that lock.acquire() was interrupted because
104 # after timeout return of lock.acquire() (which can fool assertRaises).
130 rlock.acquire()
134 # Wait until we can't acquire it without blocking...
135 while rlock.acquire(blocking=False):
140 self.assertRaises(KeyboardInterrupt, rlock.acquire, timeout=5)
[all …]
Dtest_thread.py29 self.done_mutex.acquire()
67 self.done_mutex.acquire()
103 self.done_mutex.acquire()
112 mut.acquire()
117 mut.acquire()
146 started.acquire()
148 started.acquire()
163 self.checkout_mutex.acquire()
166 self.checkin_mutex.acquire()
174 self.checkout_mutex.acquire()
[all …]
/third_party/python/Lib/test/test_asyncio/
Dtest_locks.py29 await lock.acquire()
97 self.assertTrue(await lock.acquire())
100 if await lock.acquire():
105 if await lock.acquire():
110 if await lock.acquire():
146 self.assertTrue(await lock.acquire())
148 task = asyncio.create_task(lock.acquire())
157 # - B is blocked in acquire()
158 # - C is blocked in acquire()
172 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/python/Lib/asyncio/
Dlocks.py13 await self.acquire()
30 acquire() and release(). When the state is unlocked, acquire()
32 state is locked, acquire() blocks until a call to release() in
33 another coroutine changes it to unlocked, then the acquire() call
39 When more than one coroutine is blocked in acquire() waiting for
42 is blocked in acquire() is being processed.
44 acquire() is a coroutine and should be called with 'await'.
53 await lock.acquire()
69 await lock.acquire()
92 async def acquire(self): member in Lock
[all …]
/third_party/flutter/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/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/Doc/library/
Dasyncio-sync.rst60 await lock.acquire()
72 .. coroutinemethod:: acquire()
74 Acquire the lock.
79 When more than one coroutine is blocked in :meth:`acquire`
212 await cond.acquire()
218 .. coroutinemethod:: acquire()
220 Acquire the underlying lock.
285 :meth:`acquire` call and incremented by each :meth:`release` call.
286 The counter can never go below zero; when :meth:`acquire` finds
314 await sem.acquire()
[all …]
Dthreading.rst203 (:meth:`Lock.acquire`, :meth:`RLock.acquire`, :meth:`Condition.wait`, etc.).
460 in the unlocked state. It has two basic methods, :meth:`~Lock.acquire` and
461 :meth:`~Lock.release`. When the state is unlocked, :meth:`~Lock.acquire`
463 :meth:`~Lock.acquire` blocks until a call to :meth:`~Lock.release` in another
464 thread changes it to unlocked, then the :meth:`~Lock.acquire` call resets it
472 When more than one thread is blocked in :meth:`~Lock.acquire` waiting for the
483 lock, subsequent attempts to acquire it block, until it is released; any
491 .. method:: acquire(blocking=True, timeout=-1)
493 Acquire a lock, blocking or non-blocking.
549 To lock the lock, a thread calls its :meth:`~RLock.acquire` method; this
[all …]
/third_party/vk-gl-cts/external/vulkan-docs/src/appendices/
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.
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.
/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/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/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/flutter/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/python/Modules/_multiprocessing/clinic/
Dsemaphore.c.h8 "acquire($self, /, block=True, timeout=None)\n"
11 "Acquire the semaphore/lock.");
14 …{"acquire", (PyCFunction)(void(*)(void))_multiprocessing_SemLock_acquire, METH_FASTCALL|METH_KEYWO…
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)(void(*)(void))_multiprocessing_SemLock_acquire, METH_FASTCALL|METH_KEYWO…
99 static _PyArg_Parser _parser = {NULL, _keywords, "acquire", 0}; in _multiprocessing_SemLock_acquire()
247 "Num of `acquire()`s minus num of `release()`s for this process.");
/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/ltp/testcases/misc/lvm/
Dprepare_lvm.sh47 LVM_DEV1=`tst_device acquire 1040 "$LVM_IMGDIR/lvm_pv1.img"`
49 LVM_DEV2=`tst_device acquire 1040 "$LVM_IMGDIR/lvm_pv2.img"`
55 LVM_DEV3=`tst_device acquire $DEVSIZE "$LVM_IMGDIR/lvm_pv3.img"`
57 LVM_DEV4=`tst_device acquire $DEVSIZE "$LVM_IMGDIR/lvm_pv4.img"`
/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.py20 # acquire(blocking=False) unsupported
25 # acquire(timeout=...) unsupported
67 """Try to acquire the lock. Return True on success,
70 lock.acquire()
93 # second acquire() call. It may be several of them, because the
/third_party/cef/include/base/
Dcef_lock.h62 void Acquire() { lock_.Lock(); } in Acquire() function
79 // acquire the lock a second time (while already holding it).
80 void Acquire() {
124 explicit AutoLock(Lock& lock) : lock_(lock) { lock_.Acquire(); } in AutoLock()
143 // constructor, and re-Acquire() it in the destructor.
155 ~AutoUnlock() { lock_.Acquire(); } in ~AutoUnlock()

12345678910>>...47