Home
last modified time | relevance | path

Searched full:locking (Results 1 – 25 of 1842) sorted by relevance

12345678910>>...74

/external/autotest/server/hosts/
Dfile_store_unittest.py14 from autotest_lib.utils.frozen_chromite.lib import locking
58 This test intentionally uses a real locking.FileLock to ensure that
59 locking API is used correctly.
64 file_lock = locking.FileLock(store._lock_path,
65 locktype=locking.FLOCK)
74 This test intentionally uses a real locking.FileLock to ensure that
75 locking API is used correctly.
82 file_lock = locking.FileLock(store._lock_path,
83 locktype=locking.FLOCK)
122 @mock.patch('autotest_lib.utils.frozen_chromite.lib.locking.FileLock',
[all …]
Dfile_store.py10 from autotest_lib.utils.frozen_chromite.lib import locking
41 self._lock = locking.FileLock(
43 locktype=locking.FLOCK,
44 description='Locking FileStore to read/write HostInfo.',
99 return isinstance(exc, locking.LockNotAcquiredError)
107 # If self._lock fails to write the locking file, it'll leak an OSError
108 except (locking.LockNotAcquiredError, OSError) as e:
/external/sdv/vsomeip/third_party/boost/thread/doc/
Dexternal_locking.qbk8 [section External Locking -- `strict_lock` and `externally_locked` classes]
15 [section Internal locking]
37locking idiom doesn't cover the entire richness of a threading model. For example, the model above…
41 [section Internal and external locking]
43 The BankAccount class above uses internal locking. Basically, a class that uses internal locking gu…
47 Internal locking is insufficient for many real-world synchronization tasks. Imagine that you want t…
135 …mentation works but has a performance overhead due to unnecessary locking. (The locking/unlocking …
136 * Your mutex implementation might not support recursive locking, which means that as soon as you tr…
147locking approach is more flexible and the most efficient, but very dangerous. In an implementation…
161 Obviously, the caller-ensured locking approach has a safety problem. BankAccount's implementation c…
[all …]
Dinternal_locking.qbk9 [section Internal Locking]
59 [section Internal locking]
109locking idiom doesn't cover the entire richness of a threading model. For example, the model above…
112 [section Internal and external locking]
114 The BankAccount class above uses internal locking. Basically, a class that uses internal locking gu…
118 Internal locking is insufficient for many real-world synchronization tasks. Imagine that you want t…
200 …mentation works but has a performance overhead due to unnecessary locking. (The locking/unlocking …
201 * Your mutex implementation might not support recursive locking, which means that as soon as you tr…
212locking approach is more flexible and the most efficient, but very dangerous. In an implementation…
226 Obviously, the caller-ensured locking approach has a safety problem. BankAccount's implementation c…
[all …]
/external/linux-kselftest/tools/testing/selftests/drivers/net/dsa/
Dbridge_locked_port.sh90 check_err $? "Ping did not work before locking port"
95 check_fail $? "Ping worked after locking port, but before adding FDB entry"
100 check_err $? "Ping did not work after locking port and adding FDB entry"
121 check_err $? "Ping through vlan did not work before locking port"
125 check_fail $? "Ping through vlan worked after locking port, but before adding FDB entry"
130 check_err $? "Ping through vlan did not work after locking port and adding FDB entry"
149 check_err $? "Ping6 did not work before locking port"
154 check_fail $? "Ping6 worked after locking port, but before adding FDB entry"
158 check_err $? "Ping6 did not work after locking port and adding FDB entry"
/external/linux-kselftest/tools/testing/selftests/net/forwarding/
Dbridge_locked_port.sh90 check_err $? "Ping did not work before locking port"
95 check_fail $? "Ping worked after locking port, but before adding FDB entry"
100 check_err $? "Ping did not work after locking port and adding FDB entry"
121 check_err $? "Ping through vlan did not work before locking port"
125 check_fail $? "Ping through vlan worked after locking port, but before adding FDB entry"
130 check_err $? "Ping through vlan did not work after locking port and adding FDB entry"
149 check_err $? "Ping6 did not work before locking port"
154 check_fail $? "Ping6 worked after locking port, but before adding FDB entry"
158 check_err $? "Ping6 did not work after locking port and adding FDB entry"
/external/libevent/include/event2/
Dthread.h62 /** A flag passed to a locking callback when the lock was allocated as a
65 /** A flag passed to a locking callback when the lock was allocated as a
68 /** A flag passed to a locking callback when we don't want to block waiting
70 * return nonzero from the locking callback. */
92 * locking. It's used to tell evthread_set_lock_callbacks() how to use
93 * locking on this platform.
96 /** The current version of the locking API. Set this to
99 /** Which kinds of locks does this version of the locking API
121 /** Sets a group of functions that Libevent should use for locking.
138 * how to use locking on this platform.
[all …]
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/openers/
DStreamMutationOpener.java59 @Nullable private LockFileOpener locking = null; field in StreamMutationOpener
69 * Enable exclusive locking with this opener. This is useful if multiple processes or threads need
73 public StreamMutationOpener withLocking(LockFileOpener locking) { in withLocking() argument
74 this.locking = locking; in withLocking()
88 return new Mutator(openContext, locking, behaviors); in open()
99 OpenContext openContext, @Nullable LockFileOpener locking, @Nullable Behavior[] behaviors) in Mutator() argument
103 if (locking != null) { in Mutator()
104 lock = locking.open(openContext); in Mutator()
/external/sdv/vsomeip/third_party/boost/asio/include/boost/asio/detail/
Dconcurrency_hint.hpp26 // If set, this bit indicates that the scheduler should perform locking.
29 // If set, this bit indicates that the reactor should perform locking when
33 // If set, this bit indicates that the reactor should perform locking for I/O.
42 // Helper macro to determine if locking is enabled for a given facility.
49 // This special concurrency hint disables locking in both the scheduler and
63 // This special concurrency hint disables locking in the reactor I/O. This hint
/external/libevent/
Devthread-internal.h50 /* Global function pointers to lock-related functions. NULL if locking isn't
79 NULL if locking is not enabled. */
84 /** Free a given lock, if it is present and locking is enabled. */
116 /** Lock an event_base, if it is set up for locking. Acquires the lock
122 /** Unlock an event_base, if it is set up for locking. */
146 /* Locking is disabled either globally or for this thing; in EVLOCK_TRY_LOCK_()
181 /** True iff locking functions have been configured. */
239 /** Lock an event_base, if it is set up for locking. Acquires the lock
245 /** Unlock an event_base, if it is set up for locking. */
269 /* Locking is disabled either globally or for this thing; in EVLOCK_TRY_LOCK_()
[all …]
/external/libwebsockets/READMEs/
DREADME.event-loops-intro.md26 - they have a **single thread**, therefore they do not require locking
41 It means that all mutexes and other synchronization and locking can be
109 locking and careful management so only deterministic and expected things
204 not done on the event loop, without a new thread or the consequent locking (and
214 thread if read() or write() has completed, but costs threads and locking to get
217 Event loops dispense with the threads and locking, and still provide a simple
222 locking.
247 - locking must be handled, and missed locking or lock order bugs found
270 one thing at a time. The networking stack locking also introduces hidden
285 different code can call each other's apis safely without locking.
/external/autotest/server/cros/
Dhost_lock_manager_unittest.py47 @param lock_reason: a string, a reason for locking the hosts
106 """Tests host locking, all hosts not in self.locked_hosts."""
110 manager.lock(hosts, lock_reason='Locking for test')
115 """Tests host locking, some hosts not in self.locked_hosts."""
119 manager.lock(hosts, lock_reason='Locking for test')
125 """Tests host locking, all hosts in self.locked_hosts."""
/external/ltp/testcases/network/nfsv4/locks/
DREADME5 GOAL : This test is aimed at stressing the fcntl locking functions.
6 A master process sets a lock on a file region (byte range locking).
35 These options have been developed to test NFSv4 locking when multiple
143 - Locking profile (POSIX locking, Mandatory locking)
149 Slave type | Test operation | advisory locking | mandatory locking |
/external/python/cpython2/Demo/metaclasses/
DSynch.py33 locking __mutex:
142 # Now, the Locking metaclass is a piece of cake.
167 Locking = LockingMetaClass('Locking', (), {}) variable
170 # For kicks, take away the Locking base class and see it die
171 class Buffer(Locking):
202 self.put(item) # Recursive call to test the locking
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl16.c25 * Additional file locking test cases for checking proper notifictaion
30 * locking, with madatory locking and mandatory locking with NOBLOCK.
672 * mandatory locking in main()
677 "locking FAILED"); in main()
680 "locking PASSED"); in main()
687 * locking in main()
693 "locking FAILED"); in main()
697 " record locking PASSED"); in main()
700 " support mandatory locking"); in main()
706 * Check file locks on a file with mandatory record locking in main()
[all …]
/external/libwebsockets/lib/system/
DREADME.md19 platform-specific locking to request callbacks to their own code from the
28 ## Implementing the system-specific locking
38 This should be defined in user code as setting locking, then passing the
48 that does the actual attach work. When it returns, the locking should be
/external/selinux/libselinux/man/man3/
Davc_init.337 …directed how to perform memory allocation, logging, thread creation, and locking via callback func…
156 …vior is not to perform any locking. Note that undefined behavior may result if threading is used …
198locking callbacks. In the fallback case, the userspace AVC checks for new netlink messages at the …
/external/chromium-trace/catapult/third_party/polymer/components/iron-dropdown/test/
Diron-dropdown-scroll-manager.html83 test('recognizes locking child as unlocked', function() {
88 test('recognizes descendant of locking child as unlocked', function() {
93 test('unlocks locked elements when there are no locking elements', function() {
130 test('allows wheel events when there are no locking elements', function() {
145 …test('touchstart is prevented if dispatched by an element outside the locking element', function()…
154 …test('touchstart is not prevented if dispatched by an element inside the locking element', functio…
/external/python/oauth2client/oauth2client/contrib/
Dlocked_file.py17 This module first tries to use fcntl locking to ensure serialized access
64 """Base class for different locking primitives."""
72 fallback_mode: string, The mode to use if locking fails.
172 """The name of the lock file to use for posix locking."""
186 fallback_mode: string, The mode to use if locking fails.
187 use_native_locking: bool, Whether or not fcntl/win32 locking is
/external/cronet/third_party/apache-portable-runtime/src/include/
Dapr_proc_mutex.h22 * @brief APR Process Locking Routines
34 * @defgroup apr_proc_mutex Process Locking Routines
40 * Enumerated potential types for APR process locking methods
48 APR_LOCK_PROC_PTHREAD, /**< POSIX pthread process-based locking */
49 APR_LOCK_POSIXSEM, /**< POSIX semaphore process-based locking */
/external/autotest/utils/frozen_chromite/lib/
Dlocking.py6 """Basic locking functionality."""
33 """Signals miscellaneous problems in the locking process."""
47 """Base lockf based locking. Derivatives need to override _GetFd"""
123 description = self.description or 'locking._enforce_lock'
221 # held, we can do locking in that critical section if the code requests it.
238 """Use a specified file as a locking mechanism."""
292 """Process level locking visible to parent/child only.
300 Thus this implementation is based around locking of a deleted tempfile;
/external/sdv/vsomeip/third_party/boost/thread/include/boost/thread/
Dstrict_lock.hpp86 * @return whether this lock is locking a mutex.
94 * @return whether this lock is locking that mutex.
117 …* scope, by taking ownership of an nesting lock, locking the mutex on construction if not already …
191 * @return whether this lock is locking a mutex.
199 * @return whether if this lock is locking that mutex.
/external/mockito/src/main/java/org/mockito/internal/util/
DJavaEightUtil.java33 // no need for double-checked locking in emptyOptional()
48 // no need for double-checked locking in emptyOptionalDouble()
62 // no need for double-checked locking in emptyOptionalInt()
76 // no need for double-checked locking in emptyOptionalLong()
/external/chromium-trace/catapult/third_party/polymer/components/iron-dropdown/
Diron-dropdown-scroll-manager.html56 * scroll lock. This is always the most recently locking element.
103 * Scroll locking is implemented as a stack so that cases such as
236 * Returns true if the event causes scroll outside the current locking
238 * outside the locking element when it is already at its scroll boundaries.
257 // Don't prevent touchstart event inside the locking element when it has
269 * Returns an array of scrollable nodes up to the current locking element,
278 // Loop from root target to locking element (included).
/external/rust/crates/parking_lot/
DREADME.md16 locking. It also exposes a low-level API for creating your own efficient
54 8. `RwLock` uses a task-fair locking policy, which avoids reader and writer
63 13. `Mutex<()>` and `RwLock<()>` allow raw locking without a RAII guard
67 15. A `ReentrantMutex` type which supports recursive locking.
83 based on the Webkit [`WTF::ParkingLot`](https://webkit.org/blog/6161/locking-in-webkit/)

12345678910>>...74