Searched defs:lock (Results 276 - 300 of 467) sorted by relevance

<<111213141516171819

/external/libese/apps/boot/
H A Dboot.c170 EseBootLockId lock, uint8_t *lockData,
178 if (lock > kEseBootLockIdMax) {
190 uint8_t p1p2[] = {lock, 0x01};
212 ALOGE("ese_boot_lock_xget: failed to read lock state (%d)", lock);
231 EseBootLockId lock, uint8_t *lockVal) {
238 if (lock > kEseBootLockIdMax) {
247 uint8_t p1p2[] = {lock, 0x0};
257 ALOGE("ese_boot_lock_get: failed to read lock state (%d).", lock);
169 ese_boot_lock_xget(struct EseBootSession *session, EseBootLockId lock, uint8_t *lockData, uint16_t maxSize, uint16_t *length) argument
230 ese_boot_lock_get(struct EseBootSession *session, EseBootLockId lock, uint8_t *lockVal) argument
[all...]
/external/libevent/
H A Devbuffer-internal.h112 /** A lock used to mediate access to this buffer. */
113 void *lock; member in struct:evbuffer
115 /** True iff we should free the lock field when we free this
236 void *lock; /**< lock prevent concurrent access to refcnt */ member in struct:evbuffer_file_segment
281 /** Assert that we are holding the lock on an evbuffer */
283 EVLOCK_ASSERT_LOCKED((buffer)->lock)
287 EVLOCK_LOCK((buffer)->lock, 0); \
291 EVLOCK_UNLOCK((buffer)->lock, 0); \
295 EVLOCK_LOCK2((buffer1)->lock, (buffer
[all...]
H A Dbufferevent-internal.h120 /** Seed for weak random number generator. Protected by 'lock' */
123 /** Lock to protect the members of this group. This lock should nest
124 * within every bufferevent lock: if you are holding this lock, do
125 * not assume you can lock another bufferevent. */
126 void *lock; member in struct:bufferevent_rate_limit_group
135 * lock */
161 /** If set, we should free the lock when we free the bufferevent. */
207 void *lock; member in struct:bufferevent_private
352 /** Internal: Set up locking on a bufferevent. If lock i
[all...]
/external/mesa3d/src/gallium/state_trackers/nine/
H A Ddevice9ex.c451 BOOL lock; local
452 lock = !!(pCreationParameters->BehaviorFlags & D3DCREATE_MULTITHREADED);
454 NINE_NEW(Device9Ex, ppOut, lock,
/external/ppp/pppd/
H A Dutils.c856 /* Procedures for locking the serial device using a lock file. */
859 #define LOCK_DIR "/var/lock"
864 #define LOCK_DIR "/var/spool/lock"
872 * lock - create a lock file for the named device
875 lock(dev) function
890 error("Can't create lock file %s", lock_file);
906 error("Can't lock %s: not a character device", dev);
933 error("Can't create lock file %s: %m", lock_file);
937 /* Read the lock fil
[all...]
/external/python/cpython2/Lib/test/
H A Dtest_socketserver.py355 # If the import lock is held, the threads will hang
356 raise unittest.SkipTest("can't run when import lock is held") namespace
/external/python/cpython2/Modules/
H A Dbsddb.h70 * DBLock (A lock handle)
229 DB_LOCK lock; member in struct:__anon19435
230 int lock_initialized; /* Signal if we actually have a lock */
/external/python/cpython3/Modules/
H A D_bz2module.c28 if (!PyThread_acquire_lock((obj)->lock, 0)) { \
30 PyThread_acquire_lock((obj)->lock, 1); \
33 #define RELEASE_LOCK(obj) PyThread_release_lock((obj)->lock)
45 PyThread_type_lock lock; member in struct:__anon19879
63 PyThread_type_lock lock; member in struct:__anon19880
329 self->lock = PyThread_allocate_lock();
330 if (self->lock == NULL) {
331 PyErr_SetString(PyExc_MemoryError, "Unable to allocate lock");
347 PyThread_free_lock(self->lock);
348 self->lock
[all...]
/external/swiftshader/src/OpenGL/libGL/
H A DImage.cpp59 void *Image::lock(unsigned int left, unsigned int top, sw::Lock lock) argument
61 return lockExternal(left, top, 0, lock, sw::PUBLIC);
74 void *Image::lockInternal(int x, int y, int z, sw::Lock lock, sw::Accessor client) argument
76 return Surface::lockInternal(x, y, z, lock, client);
241 void *buffer = lock(0, 0, sw::LOCK_WRITEONLY);
704 void *buffer = lock(xoffset, yoffset, sw::LOCK_WRITEONLY);
/external/tensorflow/tensorflow/contrib/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/
H A DCamera2BasicFragment.java81 private final Object lock = new Object(); field in class:Camera2BasicFragment
477 throw new RuntimeException("Time out waiting to lock camera opening.");
483 throw new RuntimeException("Interrupted while trying to lock camera opening.", e);
520 throw new RuntimeException("Interrupted while trying to lock camera closing.", e);
531 synchronized (lock) {
544 synchronized (lock) {
557 synchronized (lock) {
/external/v8/src/
H A Dexecution.cc24 void StackGuard::set_interrupt_limits(const ExecutionAccess& lock) { argument
32 void StackGuard::reset_limits(const ExecutionAccess& lock) { argument
435 void StackGuard::ClearThread(const ExecutionAccess& lock) { argument
441 void StackGuard::InitThread(const ExecutionAccess& lock) { argument
446 // You should hold the ExecutionAccess lock when you call this.
491 // Callbacks must be invoked outside of ExecusionAccess lock.
/external/zlib/src/examples/
H A Dgzlog.c35 foo.lock -- lock file for reading and writing the other files
82 All three operations are wrapped by a lock/unlock procedure. In order to
83 gain exclusive access to the log files, first a foo.lock file must be
84 exclusively created. When all operations are complete, the lock is
85 released by deleting the foo.lock file. If when attempting to create the
86 lock file, it already exists and the modify time of the lock file is more
88 lock file is considered stale and deleted, and the exclusive creation of
89 the lock fil
302 time_t lock; /* last modify time of our lock file */ member in struct:log
[all...]
/external/autotest/cli/
H A Dhost_unittest.py25 lock = True variable in class:host_ut.test_parse_lock_options_both_set.opt
1285 self.run_cmd(argv=self._command_single + ['--lock', '--lock_reason',
1504 '--lock', '--force_modify_locking', '--lock_reason',
1518 self.run_cmd(argv=self._command_base + ['nope', '--lock'],
1581 lock_reason = lock_reason or 'Forced lock on device creation'
/external/boringssl/include/openssl/
H A Drsa.h644 CRYPTO_MUTEX lock; member in struct:rsa_st
647 // by |lock|.
654 // |lock|.
657 // thread by locking |lock| and changing the corresponding element in
/external/boringssl/src/include/openssl/
H A Drsa.h644 CRYPTO_MUTEX lock; member in struct:rsa_st
647 // by |lock|.
654 // |lock|.
657 // thread by locking |lock| and changing the corresponding element in
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_deadlock_detector.h11 // The deadlock detector maintains a directed graph of lock acquisitions.
12 // When a lock event happens, the detector checks if the locks already held by
13 // the current thread are reachable from the newly acquired lock.
16 // (a lock is alive if it has been locked at least once and has not been
18 // is flushed and the new lock epoch is started. The node ids from the old
59 // Returns true if this is the first (non-recursive) acquisition of this lock.
64 // The lock is already held by this thread, it must be recursive.
92 if (all_locks_with_contexts_[i].lock == static_cast<u32>(lock_id)) {
104 if (all_locks_with_contexts_[i].lock == static_cast<u32>(lock_id))
115 uptr getLock(uptr idx) const { return all_locks_with_contexts_[idx].lock; }
123 u32 lock; member in struct:__sanitizer::DeadlockDetectorTLS::LockWithContext
[all...]
/external/compiler-rt/lib/tsan/rtl/
H A Dtsan_interface_ann.cc150 ReadLock lock(&dyn_ann_ctx->mtx);
183 Lock lock(&dyn_ann_ctx->mtx);
249 uptr lock) {
305 Lock lock(&dyn_ann_ctx->mtx);
352 Lock lock(&dyn_ann_ctx->mtx);
360 Lock lock(&dyn_ann_ctx->mtx);
248 AnnotateCondVarWait(char *f, int l, uptr cv, uptr lock) argument
/external/compiler-rt/test/tsan/
H A Ddeadlock_detector_stress_test.cc41 void lock() { assert(0 == pthread_mutex_lock(&mu_)); } function in class:PthreadMutex
69 void lock() { assert(0 == pthread_spin_lock(&mu_)); } function in class:PthreadSpinLock
93 void lock() { assert(0 == pthread_rwlock_wrlock(&mu_)); } function in class:PthreadRWLock
121 locks_[i]->lock();
149 // Simple lock order onversion.
155 print_address("Expecting lock inversion: ", 2, A(0), A(1));
156 // CHECK: Expecting lock inversion: [[A1:0x[a-f0-9]*]] [[A2:0x[a-f0-9]*]]
159 // CHECK: WARNING: ThreadSanitizer: lock-order-inversion (potential deadlock)
160 // CHECK: Cycle in lock order graph: [[M1:M[0-9]+]] ([[A1]]) => [[M2:M[0-9]+]] ([[A2]]) => [[M1]]
175 // Simple lock orde
[all...]
/external/fio/
H A Dgettime.c470 pthread_mutex_t lock; member in struct:clock_thread
507 pthread_mutex_lock(&t->lock);
606 pthread_mutex_init(&t->lock, NULL);
608 pthread_mutex_lock(&t->lock);
625 pthread_mutex_unlock(&t->lock);
/external/fio/t/
H A Dread-to-pipe-async.c62 pthread_mutex_t lock; member in struct:thread_data
95 pthread_mutex_t lock; member in struct:work_item
247 pthread_mutex_lock(&wt->thread.lock);
258 pthread_cond_wait(&wt->thread.cond, &wt->thread.lock);
260 pthread_mutex_unlock(&wt->thread.lock);
304 pthread_mutex_lock(&work->writer->thread.lock);
306 pthread_mutex_unlock(&work->writer->thread.lock);
319 pthread_mutex_lock(&rt->thread.lock);
336 pthread_mutex_unlock(&rt->thread.lock);
359 pthread_mutex_lock(&rt->thread.lock);
[all...]
/external/icu/icu4c/source/common/
H A Dudata.cpp151 Mutex lock; local
681 Mutex lock; local
712 Mutex lock; local
/external/icu/icu4c/source/test/intltest/
H A Dcallimts.cpp179 Mutex lock; local
/external/javasqlite/src/main/java/SQLite/JDBC2z/
H A DJDBCConnection.java523 static Object lock = new Object(); field in class:DatabaseX
531 synchronized (lock) {
532 lock.wait(ms);
541 synchronized (lock) {
542 lock.notifyAll();
549 synchronized (lock) {
550 lock.notifyAll();
557 synchronized (lock) {
558 lock.notifyAll();
566 synchronized (lock) {
[all...]
/external/jemalloc/include/jemalloc/internal/
H A Dprof.h99 /* Profiling counters, protected by tdata->lock. */
129 /* Current dump-related state, protected by gctx->lock. */
142 malloc_mutex_t *lock; member in struct:prof_gctx_s
177 malloc_mutex_t *lock; member in struct:prof_tdata_s
/external/libchrome/base/metrics/
H A Dpersistent_memory_allocator_unittest.cc18 #include "base/synchronization/lock.h"
360 Lock* lock,
365 lock_(lock),
426 Lock lock; local
427 ConditionVariable condition(&lock);
430 CounterThread t1("t1", &iter, &lock, &condition, &wake_up);
431 CounterThread t2("t2", &iter, &lock, &condition, &wake_up);
432 CounterThread t3("t3", &iter, &lock, &condition, &wake_up);
433 CounterThread t4("t4", &iter, &lock, &condition, &wake_up);
434 CounterThread t5("t5", &iter, &lock,
358 CounterThread(const std::string& name, PersistentMemoryAllocator::Iterator* iterator, Lock* lock, ConditionVariable* condition, bool* wake_up) argument
[all...]

Completed in 573 milliseconds

<<111213141516171819