| /external/autotest/server/hosts/ |
| D | file_store_unittest.py | 14 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 …]
|
| D | file_store.py | 10 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/libevent/include/event2/ |
| D | thread.h | 62 /** 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/ |
| D | StreamMutationOpener.java | 59 @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/libevent/ |
| D | evthread-internal.h | 50 /* 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/ |
| D | README.event-loops-intro.md | 26 - 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/ltp/testcases/network/nfsv4/locks/ |
| D | README | 5 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 |
|
| D | locktests.h | 8 * GOAL : This test tries to stress the fcntl locking functions. A 10 * range locking"). Some slave processes try to perform operations on 21 * option was created to verify NFSv4 locking was thread-aware, and so, 22 * locking behaviour over NFSv4 was POSIX correct both using threads and
|
| /external/autotest/server/cros/ |
| D | host_lock_manager_unittest.py | 47 @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/kernel/syscalls/fcntl/ |
| D | fcntl16.c | 25 * 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/python/cpython2/Demo/metaclasses/ |
| D | Synch.py | 33 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/libwebsockets/lib/system/ |
| D | README.md | 19 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/ |
| D | avc_init.3 | 37 …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 … 198 …locking 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/ |
| D | iron-dropdown-scroll-manager.html | 83 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/ |
| D | locked_file.py | 17 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/autotest/utils/frozen_chromite/lib/ |
| D | locking.py | 6 """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/chromium-trace/catapult/third_party/polymer/components/iron-dropdown/ |
| D | iron-dropdown-scroll-manager.html | 56 * 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/mockito/src/main/java/org/mockito/internal/util/ |
| D | JavaEightUtil.java | 33 // 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/rust/crates/parking_lot/ |
| D | README.md | 16 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/)
|
| /external/openthread/third_party/tcplp/bsdtcp/ |
| D | tcp_timer.c | 80 * I also removed stats collection, locking, and vnet, throughout the code. in tcp_timer_delack() 104 * I also removed stats collection, locking, and vnet, throughout the code. in tcp_timer_keep() 160 * that handled debug tracing/probes, vnet, and locking. I removed that in tcp_timer_keep() 188 * I also removed stats collection, locking, and vnet, throughout the code. in tcp_timer_persist() 233 * tracing/probes, vnet, and locking. I removed that code. in tcp_timer_persist() 256 * I also removed stats collection, locking, and vnet, throughout the code. in tcp_timer_2msl() 325 * tracing/probes, vnet, and locking. I removed that code. in tcp_timer_2msl() 348 * I also removed stats collection, locking, and vnet, throughout the code. in tcp_timer_rexmt() 463 * tracing/probes, vnet, and locking. I removed that code. in tcp_timer_rexmt()
|
| /external/autotest/utils/frozen_chromite/third_party/oauth2client/ |
| D | locked_file.py | 17 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.""" 344 fallback_mode: string, The mode to use if locking fails. 345 use_native_locking: bool, Whether or not fcntl/win32 locking is
|
| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_lock/ |
| D | 3-1.c | 30 …("Test PASSED: *Note: Did not return EDEADLK when re-locking a spinlock already in use, but stand… in sig_handler() 69 ("main: correctly got EDEADLK when re-locking the spin lock\n"); in main() 74 …("Test PASSED: *Note: Did not return EDEADLK when re-locking a spinlock already in use, but stand… in main()
|
| /external/python/cpython2/PC/ |
| D | msvcrtmodule.c | 23 #include <sys/locking.h> 52 // Perform locking operations on a C runtime file descriptor. 61 if (!PyArg_ParseTuple(args, "iil:locking", &fd, &mode, &nbytes)) in msvcrt_locking() 75 "locking(fd, mode, nbytes) -> None\n\ 379 {"locking", msvcrt_locking, METH_VARARGS, locking_doc}, 407 /* constants for the locking() function's mode argument */ in initmsvcrt()
|
| /external/libwebsockets/include/libwebsockets/ |
| D | lws-system.h | 178 * locking outside of lws core, for both getting and adding items the 181 * system-specific locking. 269 * This api is the no-locking core function for getting and setting items on the 272 * system-specific locking, call this helper, release the locking and then 283 * specific locking has been applied around it, making it threadsafe.
|
| /external/linux-kselftest/tools/testing/selftests/locking/ |
| D | ww_mutex.sh | 15 echo "locking/ww_mutex: ok" 17 echo "locking/ww_mutex: [FAIL]"
|