HomeSort by relevance Sort by last modified time
    Searched full:lock (Results 376 - 400 of 7150) sorted by null

<<11121314151617181920>>

  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
ICURWLock.java 13 * <p>A Reader/Writer lock originally written for ICU service
15 * with the JDK's stock read write lock (ReentrantReadWriteLock)
20 * a write lock, or deal with priority inversion issues.</p>
22 * <p>Access to the lock should be enclosed in a try/finally block
23 * in order to ensure that the lock is always released in case of
26 * lock.acquireRead();
27 * // use service protected by the lock
30 * lock.releaseRead();
34 * <p>The lock provides utility methods getStats and clearStats
35 * to return statistics on the use of the lock.</p
    [all...]
  /external/jmonkeyengine/engine/src/core/checkers/quals/
Unused.java 14 * Consider a class, {@code Table}, with a locking field, {@code lock}. The
15 * lock is used when a {@code Table} instance is shared across threads. When
16 * running in a local thread, the {@code lock} field ought not to be used.
22 * private @Unused(when=LocalToThread.class) final Lock lock;
30 * ... table.lock ...;
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
KeyguardManagerTest.java 33 KeyguardManager.KeyguardLock lock = mgr.newKeyguardLock(KEYGUARD_SERVICE); local
34 assertTrue(shadowOf(lock).isEnabled());
36 lock.disableKeyguard();
37 assertFalse(shadowOf(lock).isEnabled());
39 lock.reenableKeyguard();
40 assertTrue(shadowOf(lock).isEnabled());
WifiManagerTest.java 145 WifiManager.WifiLock lock = wifiManager.createWifiLock("TAG"); local
146 lock.acquire();
147 lock.acquire();
148 assertTrue(lock.isHeld());
149 lock.release();
150 assertTrue(lock.isHeld());
151 lock.release();
152 assertFalse(lock.isHeld());
157 WifiManager.WifiLock lock = wifiManager.createWifiLock("TAG"); local
158 lock.setReferenceCounted(false)
169 WifiManager.WifiLock lock = wifiManager.createWifiLock("TAG"); local
175 WifiManager.WifiLock lock = wifiManager.createWifiLock("TAG"); local
    [all...]
  /external/skia/src/utils/
SkCondVar.h 36 * Lock a mutex. Must be done before calling the other functions on this object.
38 void lock();
47 * Must be called while lock() is held (but gives it up while waiting). Once awoken,
48 * the calling thread will hold the lock once again.
53 * Wake one thread waiting on this condition. Must be called while lock()
59 * Wake all threads waiting on this condition. Must be called while lock()
  /external/valgrind/helgrind/tests/
tc09_bad_unlock.c 22 /* Unlocking a lock that is already unlocked */
29 /* Unlocking a lock that is held by a different thread */
33 // start child and get it to unlock this lock
36 /* child runs and attempts to unlock our lock. Error
40 /* Unlocking a totally bogus lock. */
43 /* Now we get a freeing-locked-lock error, since the stack
  /frameworks/base/core/java/com/android/internal/widget/
LockScreenWidgetCallback.java 22 * An interface used by LockScreenWidgets to send messages to lock screen.
25 // Sends a message to lock screen requesting the given view be shown. May be ignored, depending
26 // on lock screen state. View must be the top-level lock screen widget or it will be ignored.
29 // Sends a message to lock screen requesting the view to be hidden.
35 // Sends a message to lock screen that user has interacted with widget. This should be used
  /hardware/intel/common/libwsbm/src/
wsbm_atomic.h 24 __asm__ __volatile__("lock; incl %0; sete %1":"+m"(v->count), "=qm"(c)
35 __asm__ __volatile__("lock; addl %2,%0; sets %1":"+m"(v->count), "=qm"(c)
46 __asm__ __volatile__("lock; decl %0; sete %1":"+m"(v->count), "=qm"(c)
55 __asm__ __volatile__("lock; incl %0":"+m"(v->count));
61 __asm__ __volatile__("lock; decl %0":"+m"(v->count));
69 __asm__ __volatile__("lock; cmpxchgl %k1,%2":"=a"(previous)
  /hardware/qcom/display/msm8960/libgenlock/
genlock.h 39 /* Genlock lock types */
41 GENLOCK_READ_LOCK = 1<<0, // Read lock
42 GENLOCK_WRITE_LOCK = 1<<1, // Write lock
56 * Create a genlock lock. The genlock lock file descriptor and the lock
66 * Release a genlock lock associated with the handle.
74 * Attach a lock to the buffer handle passed via an IPC.
82 * Lock the buffer specified by the buffer handle. The lock held by th
    [all...]
  /external/clang/test/Analysis/
pthreadlock.c 5 #include "Inputs/system-header-simulator-for-pthread-lock.h"
184 pthread_mutex_lock(&mtx1); // expected-warning{{This lock has already been acquired}}
193 pthread_mutex_lock(&mtx1); // expected-warning{{This lock has already been acquired}}
201 pthread_mutex_unlock(&mtx1); // expected-warning{{This was not the most recently acquired lock}}
211 pthread_mutex_unlock(&mtx1); // expected-warning{{This was not the most recently acquired lock}}
218 lck_mtx_lock(&lck1); // expected-warning{{This lock has already been acquired}}
227 lck_mtx_lock(&lck1); // expected-warning{{This lock has already been acquired}}
235 lck_mtx_unlock(&lck1); // expected-warning{{This was not the most recently acquired lock}}
245 lck_mtx_unlock(&lck1); // expected-warning{{This was not the most recently acquired lock}}
252 lck_mtx_unlock(&lck1); // expected-warning{{This lock has already been unlocked}
    [all...]
  /external/llvm/test/CodeGen/X86/
atomic32.ll 12 ; WITH-CMOV: lock
15 ; WITH-CMOV: lock
18 ; WITH-CMOV: lock
21 ; WITH-CMOV: lock
30 ; WITH-CMOV: lock
33 ; WITH-CMOV: lock
36 ; WITH-CMOV: lock
39 ; WITH-CMOV: lock
48 ; WITH-CMOV: lock
52 ; WITH-CMOV: lock
    [all...]
atomic_op.ll 26 ; CHECK: lock
30 ; CHECK: lock
34 ; CHECK: lock
38 ; CHECK: lock
43 ; CHECK: lock
48 ; CHECK: lock
53 ; CHECK: lock
58 ; CHECK: lock
64 ; CHECK: lock
69 ; CHECK: lock
    [all...]
  /external/llvm/include/llvm/Support/
RWMutex.h 1 //===- RWMutex.h - Reader/Writer Mutual Exclusion Lock ----------*- C++ -*-===//
32 /// Initializes the lock but doesn't acquire it.
36 /// Releases and removes the lock
45 /// Attempts to unconditionally acquire the lock in reader mode. If the
46 /// lock is held by a writer, this method will wait until it can acquire
47 /// the lock.
49 /// @brief Unconditionally acquire the lock in reader mode.
52 /// Attempts to release the lock in reader mode.
54 /// @brief Unconditionally release the lock in reader mode.
57 /// Attempts to unconditionally acquire the lock in reader mode. If th
115 bool lock() { function in class:llvm::sys::SmartRWMutex
    [all...]
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
97 bool lock() { function in class:llvm::sys::SmartMutex
    [all...]
  /system/bt/osi/src/
allocation_tracker.c 63 static pthread_mutex_t lock; variable
71 pthread_mutex_init(&lock, NULL);
73 pthread_mutex_lock(&lock);
81 pthread_mutex_unlock(&lock);
89 pthread_mutex_lock(&lock);
92 pthread_mutex_unlock(&lock);
99 pthread_mutex_lock(&lock);
101 pthread_mutex_unlock(&lock);
108 pthread_mutex_lock(&lock);
113 pthread_mutex_unlock(&lock);
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
mutex.py 6 representing functions (or methods) waiting to acquire the lock.
9 implying it now has the lock.
12 for lock, where a function is called once the lock is aquired.
31 """Atomic test-and-set -- grab the lock if it is not set,
39 def lock(self, function, argument): member in class:mutex
40 """Lock a mutex, call the function with supplied argument
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
mutex.py 6 representing functions (or methods) waiting to acquire the lock.
9 implying it now has the lock.
12 for lock, where a function is called once the lock is aquired.
31 """Atomic test-and-set -- grab the lock if it is not set,
39 def lock(self, function, argument): member in class:mutex
40 """Lock a mutex, call the function with supplied argument
  /external/llvm/lib/Support/
LockFileManager.cpp 25 /// \brief Attempt to read the lock file with the given name, if it exists.
27 /// \param LockFileName The name of the lock file to read.
29 /// \returns The process ID of the process that owns this lock file
32 // Read the owning host and PID out of the lock file. If it appears that the
33 // owning process is dead, the lock file is invalid.
53 // Delete the lock file. It's invalid anyway.
80 LockFileName += ".lock";
82 // If the lock file already exists, don't bother to try to create our own
83 // lock file; it won't work anyway. Just figure out who owns this lock file
    [all...]
  /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...]
  /external/clang/lib/StaticAnalyzer/Checkers/
PthreadLockChecker.cpp 10 // This defines PthreadLockChecker, a simple lock -> unlock checker.
66 void AcquireLock(CheckerContext &C, const CallExpr *CE, SVal lock,
69 void ReleaseLock(CheckerContext &C, const CallExpr *CE, SVal lock) const;
70 void DestroyLock(CheckerContext &C, const CallExpr *CE, SVal Lock) const;
71 void InitLock(CheckerContext &C, const CallExpr *CE, SVal Lock) const;
76 // GDM Entry for tracking lock state.
125 SVal lock, bool isTryLock,
128 const MemRegion *lockR = lock.getAsRegion();
144 "Lock checker"));
149 "This lock has already been acquired"
    [all...]
  /external/jemalloc/test/include/test/
mq.h 31 mtx_t lock; \
38 if (mtx_init(&mq->lock)) \
48 mtx_fini(&mq->lock); \
55 mtx_lock(&mq->lock); \
57 mtx_unlock(&mq->lock); \
65 mtx_lock(&mq->lock); \
71 mtx_unlock(&mq->lock); \
105 mtx_lock(&mq->lock); \
109 mtx_unlock(&mq->lock); \
  /art/runtime/entrypoints/quick/
quick_alloc_entrypoints.h 28 // Runtime shutdown lock is necessary to prevent races in thread initialization. When the thread is
29 // starting it doesn't hold the mutator lock until after it has been added to the thread list.
30 // However, Thread::Init is guarded by the runtime shutdown lock, so we can prevent these races by
31 // holding the runtime shutdown lock and the mutator lock when we update the entrypoints.
  /external/drm_hwcomposer/
worker.h 27 int Lock();
30 // Must be called with the lock acquired
34 // Convenience versions of above, acquires the lock
49 * Must be called with the lock acquired.
57 // Must be called with the lock acquired
  /external/elfutils/src/lib/
eu-config.h 38 # define rwlock_init(lock) RWLOCK_CALL (init (&lock, NULL))
39 # define rwlock_fini(lock) RWLOCK_CALL (destroy (&lock))
40 # define rwlock_rdlock(lock) RWLOCK_CALL (rdlock (&lock))
41 # define rwlock_wrlock(lock) RWLOCK_CALL (wrlock (&lock))
42 # define rwlock_unlock(lock) RWLOCK_CALL (unlock (&lock))
    [all...]
  /external/linux-tools-perf/src/tools/perf/scripts/python/
futex-contention.py 21 lock_waits = {} # long-lived stats on (tid,lock) blockage elapsed time
46 for (tid, lock) in lock_waits:
47 min, max, avg, count = lock_waits[tid, lock]
48 print "%s[%d] lock %x contended %d times, %d avg ns" % \
49 (process_names[tid], tid, lock, count, avg)

Completed in 554 milliseconds

<<11121314151617181920>>