Home
last modified time | relevance | path

Searched refs:_lock (Results 1 – 25 of 127) sorted by relevance

123456

/external/llvm-project/libunwind/src/
DRWMutex.hpp42 AcquireSRWLockShared(&_lock);
46 ReleaseSRWLockShared(&_lock);
50 AcquireSRWLockExclusive(&_lock);
54 ReleaseSRWLockExclusive(&_lock);
59 SRWLOCK _lock = SRWLOCK_INIT;
66 bool lock_shared() { return pthread_rwlock_rdlock(&_lock) == 0; }
67 bool unlock_shared() { return pthread_rwlock_unlock(&_lock) == 0; }
68 bool lock() { return pthread_rwlock_wrlock(&_lock) == 0; }
69 bool unlock() { return pthread_rwlock_unlock(&_lock) == 0; }
72 pthread_rwlock_t _lock = PTHREAD_RWLOCK_INITIALIZER;
[all …]
/external/python/cpython3/Lib/
Dbz2.py58 self._lock = RLock()
107 with self._lock:
156 with self._lock:
169 with self._lock:
180 with self._lock:
191 with self._lock:
206 with self._lock:
221 with self._lock:
232 with self._lock:
247 with self._lock:
[all …]
Dsched.py61 self._lock = threading.RLock()
75 with self._lock:
95 with self._lock:
101 with self._lock:
130 lock = self._lock
165 with self._lock:
/external/python/cpython2/Lib/multiprocessing/
Dsynchronize.py198 self._lock = lock or RLock()
206 return (self._lock, self._sleeping_count,
210 (self._lock, self._sleeping_count,
215 return self._lock.__enter__()
218 return self._lock.__exit__(*args)
221 self.acquire = self._lock.acquire
222 self.release = self._lock.release
230 return '<Condition(%s, %s)>' % (self._lock, num_waiters)
233 assert self._lock._semlock._is_mine(), \
240 count = self._lock._semlock._count()
[all …]
Dsharedctypes.py213 self._lock = lock or RLock()
214 self.acquire = self._lock.acquire
215 self.release = self._lock.release
219 return synchronized, (self._obj, self._lock)
225 return self._lock
Dheap.py96 self._lock = threading.Lock()
201 if not self._lock.acquire(False):
212 self._lock.release()
219 self._lock.acquire()
231 self._lock.release()
Dreduction.py92 global _lock, _listener, _cache
96 _lock = threading.Lock()
106 _lock.acquire()
115 _lock.release()
/external/arm-trusted-firmware/plat/brcm/board/stingray/src/
Dbrcm_pm_ops.c41 #define event_lock_get(_lock) spin_lock(&_lock) argument
42 #define event_lock_release(_lock) spin_unlock(&_lock) argument
50 #define event_lock_get(_lock) bakery_lock_get(&_lock) argument
51 #define event_lock_release(_lock) bakery_lock_release(&_lock) argument
/external/python/cpython3/Lib/multiprocessing/
Dsynchronize.py213 self._lock = lock or ctx.RLock()
221 return (self._lock, self._sleeping_count,
225 (self._lock, self._sleeping_count,
230 return self._lock.__enter__()
233 return self._lock.__exit__(*args)
236 self.acquire = self._lock.acquire
237 self.release = self._lock.release
245 return '<%s(%s, %s)>' % (self.__class__.__name__, self._lock, num_waiters)
248 assert self._lock._semlock._is_mine(), \
255 count = self._lock._semlock._count()
[all …]
Dsharedctypes.py185 self._lock = lock
188 self._lock = ctx.RLock()
189 self.acquire = self._lock.acquire
190 self.release = self._lock.release
193 return self._lock.__enter__()
196 return self._lock.__exit__(*args)
200 return synchronized, (self._obj, self._lock)
206 return self._lock
Dresource_sharer.py66 self._lock = threading.Lock()
74 with self._lock:
93 with self._lock:
115 self._lock._at_fork_reinit()
/external/toolchain-utils/crosperf/
Dimage_checksummer.py24 self._lock = threading.Lock()
30 with self._lock:
49 _lock = threading.Lock() variable in ImageChecksummer
53 with cls._lock:
62 with self._lock:
/external/tensorflow/tensorflow/python/training/
Dcoordinator.py146 self._lock = threading.Lock()
201 with self._lock:
251 with self._lock:
319 with self._lock:
353 with self._lock:
385 with self._lock:
405 with self._lock:
/external/autotest/server/hosts/
Dssh_multiplex.py45 self._lock = multiprocessing.Lock()
79 with self._lock:
123 with self._lock:
144 self._lock = threading.Lock()
162 with self._lock:
Dfile_store.py41 self._lock = locking.FileLock(
104 functor=self._lock.write_lock,
111 with self._lock:
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/
D_thread_pool.py24 self._lock = threading.Lock()
28 with self._lock:
33 with self._lock:
/external/grpc-grpc/src/python/grpcio_tests/tests/qps/
Dhistogram.py28 self._lock = threading.Lock()
40 with self._lock:
49 with self._lock:
58 with self._lock:
/external/tensorflow/tensorflow/python/summary/writer/
Dwriter_cache.py38 _lock = threading.RLock() variable in FileWriterCache
43 with FileWriterCache._lock:
60 with FileWriterCache._lock:
/external/grpc-grpc/src/python/grpcio/grpc/framework/foundation/
Dstream_util.py89 self._lock = threading.Lock()
110 with self._lock:
125 with self._lock:
134 with self._lock:
142 with self._lock:
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/framework/foundation/
D_logging_pool_test.py27 self._lock = threading.Lock()
31 with self._lock:
35 with self._lock:
/external/rust/crates/crossbeam-utils/tests/
Dsharded_lock.rs55 let _lock = arc2.write().unwrap(); in arc_poison_wr() localVariable
70 let _lock = arc2.write().unwrap(); in arc_poison_ww() localVariable
85 let _lock = arc2.read().unwrap(); in arc_no_poison_rr() localVariable
99 let _lock = arc2.read().unwrap(); in arc_no_poison_sl() localVariable
227 let _lock = m2.write().unwrap(); in test_into_inner_poison() localVariable
253 let _lock = m2.write().unwrap(); in test_get_mut_poison() localVariable
/external/tensorflow/tensorflow/python/util/
Dlock_util.py124 self._lock = lock
128 self._lock.acquire(self._group_id)
132 self._lock.release(self._group_id)
/external/autotest/client/site_tests/platform_PrinterPpds/
Darchiver.py89 self._lock = threading.Lock()
122 with self._lock:
171 with self._lock:
190 with self._lock:
/external/python/cffi/cffi/
Dapi.py67 self._lock = allocate_lock()
87 with self._lock:
124 with self._lock:
145 with self._lock:
181 with self._lock:
205 with self._lock:
430 assert self._lock.acquire(False) is False
482 with self._lock:
528 with ffi_to_include._lock:
529 with self._lock:
[all …]
/external/autotest/site_utils/rpm_control_system/
Dfrontend_server.py92 self._lock = threading.Lock()
240 with self._lock:
275 with self._lock:
308 with self._lock:
330 with self._lock:

123456