HomeSort by relevance Sort by last modified time
    Searched defs:lock (Results 176 - 200 of 1778) sorted by null

1 2 3 4 5 6 78 91011>>

  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/thread/thread.mutex/thread.lock/thread.lock.scoped/
mutex.pass.cpp 28 void lock() { assert(!locked); locked = true; } function in struct:TestMutex
44 void lock() { function in struct:TestMutexThrows
54 lock();
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/thread/thread.mutex/thread.lock.algorithm/
lock.pass.cpp 20 // void lock(L1&, L2&, L3&...);
34 void lock() function in class:L0
57 void lock() function in class:L1
80 void lock() function in class:L2
101 std::lock(l0, l1);
108 std::lock(l0, l1);
115 std::lock(l0, l1);
125 std::lock(l0, l1);
139 std::lock(l0, l1);
153 std::lock(l0, l1)
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
posixfile.py 37 f.lock(mode [, len [, start [, whence]]])
38 will (un)lock a region
41 (character representing type of lock)
43 r read lock
44 w write lock
46 | wait until the lock can be granted
47 ? return the first lock conflicting with the requested lock
48 or 'None' if there is no conflict. The lock returned is in the
50 character representing the type of lock ('r' or 'w'
153 def lock(self, how, *args): member in class:_posixfile_
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
posixfile.py 37 f.lock(mode [, len [, start [, whence]]])
38 will (un)lock a region
41 (character representing type of lock)
43 r read lock
44 w write lock
46 | wait until the lock can be granted
47 ? return the first lock conflicting with the requested lock
48 or 'None' if there is no conflict. The lock returned is in the
50 character representing the type of lock ('r' or 'w'
153 def lock(self, how, *args): member in class:_posixfile_
    [all...]
  /system/core/libcutils/include/cutils/
threads.h 45 pthread_mutex_t lock; member in struct:__anon2786
58 CRITICAL_SECTION lock; member in struct:__anon2787
87 static __inline__ void mutex_lock(mutex_t* lock)
89 pthread_mutex_lock(lock);
91 static __inline__ void mutex_unlock(mutex_t* lock)
93 pthread_mutex_unlock(lock);
95 static __inline__ int mutex_init(mutex_t* lock)
97 return pthread_mutex_init(lock, NULL);
99 static __inline__ void mutex_destroy(mutex_t* lock)
101 pthread_mutex_destroy(lock);
108 CRITICAL_SECTION lock[1]; member in struct:__anon2788
    [all...]
  /system/libhidl/transport/include/hidl/
ConcurrentMap.h 67 std::unique_lock<std::mutex> lock() { return std::unique_lock<std::mutex>(mMutex); } function in class:android::hardware::ConcurrentMap
  /external/guava/guava/src/com/google/common/util/concurrent/
Monitor.java 120 * private final ReentrantLock lock = new ReentrantLock();
121 * private final Condition valuePresent = lock.newCondition();
122 * private final Condition valueAbsent = lock.newCondition();
126 * lock.lock();
136 * lock.unlock();
141 * lock.lock();
149 * lock.unlock();
209 // guard.lock();
325 private final ReentrantLock lock; field in class:Monitor
374 final ReentrantLock lock = this.lock; local
423 final ReentrantLock lock = this.lock; local
447 final ReentrantLock lock = this.lock; local
476 final ReentrantLock lock = this.lock; local
517 final ReentrantLock lock = this.lock; local
571 final ReentrantLock lock = this.lock; local
594 final ReentrantLock lock = this.lock; local
642 final ReentrantLock lock = this.lock; local
669 final ReentrantLock lock = this.lock; local
765 final ReentrantLock lock = this.lock; local
    [all...]
Striped.java 40 import java.util.concurrent.locks.Lock;
46 * A striped {@code Lock/Semaphore/ReadWriteLock}. This offers the underlying lock striping
48 * semaphores and read-write locks. Conceptually, lock striping is the technique of dividing a lock
49 * into many <i>stripes</i>, increasing the granularity of a single lock and allowing independent
50 * operations to lock different stripes and proceed concurrently, instead of creating contention
51 * for a single lock.
53 * <p>The guarantee provided by this class is that equal keys lead to the same lock (or semaphore),
58 * be mapped to the same lock. The lower the number of stripes, the higher the probability of thi
198 public static Striped<Lock> lock(int stripes) { method in class:Striped
    [all...]
  /libcore/jsr166-tests/src/test/java/jsr166/
ReentrantLockTest.java 40 final ReentrantLock lock; field in class:ReentrantLockTest.InterruptibleLockRunnable
41 InterruptibleLockRunnable(ReentrantLock lock) { this.lock = lock; }
43 lock.lockInterruptibly();
52 final ReentrantLock lock; field in class:ReentrantLockTest.InterruptedLockRunnable
53 InterruptedLockRunnable(ReentrantLock lock) { this.lock = lock; }
55 lock.lockInterruptibly()
184 PublicReentrantLock lock; local
205 PublicReentrantLock lock = new PublicReentrantLock(fair); local
217 ReentrantLock lock = new ReentrantLock(fair); local
230 PublicReentrantLock lock = new PublicReentrantLock(fair); local
245 final PublicReentrantLock lock = new PublicReentrantLock(fair); local
271 final PublicReentrantLock lock = new PublicReentrantLock(fair); local
296 final ReentrantLock lock = new ReentrantLock(fair); local
309 final PublicReentrantLock lock = new PublicReentrantLock(fair); local
339 final PublicReentrantLock lock = new PublicReentrantLock(fair); local
370 final PublicReentrantLock lock = new PublicReentrantLock(fair); local
389 final PublicReentrantLock lock = new PublicReentrantLock(fair); local
406 final PublicReentrantLock lock = new PublicReentrantLock(fair); local
426 ReentrantLock lock = new ReentrantLock(fair); local
444 final ReentrantLock lock = new ReentrantLock(fair); local
478 final PublicReentrantLock lock = new PublicReentrantLock(fair); local
498 final ReentrantLock lock = new ReentrantLock(fair); local
570 final ReentrantLock lock = new ReentrantLock(fair); local
588 final PublicReentrantLock lock = new PublicReentrantLock(fair); local
615 final ReentrantLock lock = new ReentrantLock(fair); local
628 final ReentrantLock lock = new ReentrantLock(fair); local
641 final PublicReentrantLock lock = new PublicReentrantLock(fair); local
654 final ReentrantLock lock = new ReentrantLock(fair); local
669 final ReentrantLock lock = new ReentrantLock(fair); local
683 final ReentrantLock lock = new ReentrantLock(fair); local
698 final ReentrantLock lock = new ReentrantLock(fair); local
712 final PublicReentrantLock lock = new PublicReentrantLock(fair); local
727 final PublicReentrantLock lock = new PublicReentrantLock(fair); local
741 final PublicReentrantLock lock = new PublicReentrantLock(fair); local
774 final PublicReentrantLock lock = new PublicReentrantLock(fair); local
832 final PublicReentrantLock lock = new PublicReentrantLock(fair); local
892 final ReentrantLock lock = new ReentrantLock(fair); local
945 final PublicReentrantLock lock = local
984 final PublicReentrantLock lock = new PublicReentrantLock(fair); local
1015 final PublicReentrantLock lock = local
1062 final PublicReentrantLock lock = new PublicReentrantLock(fair); local
1108 ReentrantLock lock = new ReentrantLock(fair); local
1134 ReentrantLock lock = new ReentrantLock(fair); local
    [all...]
  /art/test/1909-per-agent-tls/src/art/
Test1909.java 44 public final Object lock; field in class:Test1909.ThreadWaiter
48 this.lock = new Object();
51 synchronized (lock) {
53 this.lock.wait();
66 synchronized (lock) {
68 lock.notifyAll();
  /art/test/1904-double-suspend/src/art/
Test1904.java 20 public static final Object lock = new Object(); field in class:Test1904
38 lock.wait(millis);
59 synchronized (lock) {
  /bionic/libc/private/
bionic_lock.h 35 // Lock is used in places like pthread_rwlock_t, which can be initialized without calling
36 // an initialization function. So make sure Lock can be initialized by setting its memory to 0.
37 class Lock {
59 void lock() { function in class:Lock
81 LockGuard(Lock& lock) : lock_(lock) {
82 lock_.lock();
91 Lock& lock_;
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
thread_solaris.h 77 * Lock support.
82 mutex_t *lock; local
88 lock = (mutex_t *) malloc(sizeof(mutex_t));
89 if (mutex_init(lock, USYNC_THREAD, 0)) {
91 free((void *) lock);
92 lock = 0;
94 dprintf(("PyThread_allocate_lock() -> %p\n", lock));
95 return (PyThread_type_lock) lock;
99 PyThread_free_lock(PyThread_type_lock lock)
101 dprintf(("PyThread_free_lock(%p) called\n", lock));
    [all...]
  /external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/
MonitorContendedEnterAndEnteredDebuggee.java 29 static Object lock = new MonitorWaitMockMonitor(); field in class:MonitorContendedEnterAndEnteredDebuggee
41 synchronized (lock) {
48 // wait and hold the lock until the second thread blocks
51 logWriter.println("main thread: Waiting for second thread to attempt to lock a monitor");
70 synchronized (lock) {
72 logWriter.println("--> BlockedThread: get lock");
  /external/drm_hwcomposer/tests/
queue_worker_test.cpp 39 std::lock_guard<std::mutex> lk(lock);
49 std::mutex lock; member in struct:TestQueueWorker
68 std::unique_lock<std::mutex> lk(qw.lock);
131 std::unique_lock<std::mutex> lock(qw.lock);
134 qw.cond.wait_for(lock, timeout, [&] { return qw.value != 1; }));
  /external/emma/core/java12/com/vladium/emma/rt/
InstrClassLoadHook.java 71 final Object lock = m_metadata.lock (); local
74 synchronized (lock)
98 synchronized (lock)
  /external/icu/icu4c/source/test/intltest/
caltztst.cpp 49 Mutex lock; local
77 Mutex lock; local
96 Mutex lock; local
123 Mutex lock; local
  /external/libchrome/base/synchronization/
lock_unittest.cc 5 #include "base/synchronization/lock.h"
20 explicit BasicLockTestThread(Lock* lock) : lock_(lock), acquired_(0) {}
46 Lock* lock_;
53 Lock lock; local
54 BasicLockTestThread thread(&lock);
61 lock.Acquire();
63 lock.Release()
113 Lock lock; local
176 Lock lock; local
192 Lock lock; local
    [all...]
  /external/libcxxabi/src/
cxa_guard.cpp 123 uint8_t lock[2]; member in union:__cxxabiv1::__anon24561::__anon24562
125 return f.lock[1] != 0;
133 uint8_t lock[2]; member in union:__cxxabiv1::__anon24561::__anon24563
135 f.lock[1] = y;
146 uint8_t lock[2]; member in union:__cxxabiv1::__anon24561::__anon24564
148 return f.lock[1] != 0;
156 uint8_t lock[2]; member in union:__cxxabiv1::__anon24561::__anon24565
158 f.lock[1] = y;
193 lock_type lock = get_lock(*guard_object); local
194 if (lock)
    [all...]
  /external/llvm/include/llvm/Support/
Mutex.h 32 /// Initializes the lock but doesn't acquire it. if \p recursive is set
33 /// to false, the lock will not be recursive which makes it cheaper but
39 /// Releases and removes the lock
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.
54 /// Attempts to release the lock. If the lock is held by the current
55 /// thread, the lock is released allowing other threads to acquire th
99 bool lock() { function in class:llvm::sys::SmartMutex
    [all...]
  /external/ltp/utils/ffsb-6.0-rc2/
filelist.h 33 struct rwlock lock; member in struct:ffsb_file
64 /* This lock must be held while manipulating the structure */
  /external/python/cpython2/Python/
thread_solaris.h 77 * Lock support.
82 mutex_t *lock; local
88 lock = (mutex_t *) malloc(sizeof(mutex_t));
89 if (mutex_init(lock, USYNC_THREAD, 0)) {
91 free((void *) lock);
92 lock = 0;
94 dprintf(("PyThread_allocate_lock() -> %p\n", lock));
95 return (PyThread_type_lock) lock;
99 PyThread_free_lock(PyThread_type_lock lock)
101 dprintf(("PyThread_free_lock(%p) called\n", lock));
    [all...]
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowMessage.java 27 private static final Object lock = getStaticField(Message.class, "sPoolSync"); field in class:ShadowMessage
129 synchronized (lock) {
  /external/swiftshader/third_party/LLVM/utils/emacs/
llvm-mode.el 9 (defvar llvm-font-lock-keywords
12 '(";.*" . font-lock-comment-face)
14 '("%[-a-zA-Z$\._][-a-zA-Z$\._0-9]*" . font-lock-variable-name-face)
16 '("[-a-zA-Z$\._0-9]+:" . font-lock-variable-name-face)
18 '("\"[^\"]+\"" . font-lock-string-face)
20 '("%[-]?[0-9]+" . font-lock-variable-name-face)
22 `(,(regexp-opt '("void" "i[0-9]+" "float" "double" "type" "label" "opaque") 'words) . font-lock-type-face)
24 '("\\b[-]?[0-9]+\\b" . font-lock-preprocessor-face)
26 '("\\b[-+]?[0-9]+\.[0-9]*\([eE][-+]?[0-9]+\)?\\b" . font-lock-preprocessor-face)
28 '("\\b0x[0-9A-Fa-f]+\\b" . font-lock-preprocessor-face)
    [all...]
  /external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
Mutex.h 32 /// Initializes the lock but doesn't acquire it. if \p recursive is set
33 /// to false, the lock will not be recursive which makes it cheaper but
39 /// Releases and removes the lock
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.
54 /// Attempts to release the lock. If the lock is held by the current
55 /// thread, the lock is released allowing other threads to acquire th
99 bool lock() { function in class:llvm::sys::SmartMutex
    [all...]

Completed in 751 milliseconds

1 2 3 4 5 6 78 91011>>