HomeSort by relevance Sort by last modified time
    Searched refs:lock (Results 126 - 150 of 4315) sorted by null

1 2 3 4 56 7 8 91011>>

  /external/jacoco/org.jacoco.core.test/src/org/jacoco/core/test/filter/targets/
Synchronized.java 24 private static final Object lock = new Object(); field in class:Synchronized
28 synchronized (lock) { // $line-monitorEnter$
35 synchronized (lock) { // $line-explicitException.monitorEnter$
41 synchronized (lock) { // $line-implicitException.monitorEnter$
  /external/jemalloc/include/jemalloc/internal/
mutex.h 37 SRWLOCK lock; member in struct:malloc_mutex_s
39 CRITICAL_SECTION lock;
42 os_unfair_lock lock;
44 OSSpinLock lock;
46 pthread_mutex_t lock;
49 pthread_mutex_t lock;
92 AcquireSRWLockExclusive(&mutex->lock);
94 EnterCriticalSection(&mutex->lock);
97 os_unfair_lock_lock(&mutex->lock);
99 OSSpinLockLock(&mutex->lock);
    [all...]
  /external/libevent/
evthread_pthread.c 48 pthread_mutex_t *lock = mm_malloc(sizeof(pthread_mutex_t)); local
49 if (!lock)
53 if (pthread_mutex_init(lock, attr)) {
54 mm_free(lock);
57 return lock;
63 pthread_mutex_t *lock = lock_; local
64 pthread_mutex_destroy(lock);
65 mm_free(lock);
71 pthread_mutex_t *lock = lock_; local
73 return pthread_mutex_trylock(lock);
81 pthread_mutex_t *lock = lock_; local
141 pthread_mutex_t *lock = lock_; local
    [all...]
  /external/swiftshader/src/Common/
Resource.cpp 37 void *Resource::lock(Accessor claimer) function in class:sw::Resource
39 criticalSection.lock();
48 criticalSection.lock();
60 void *Resource::lock(Accessor relinquisher, Accessor claimer) function in class:sw::Resource
62 criticalSection.lock();
94 criticalSection.lock();
108 criticalSection.lock();
133 criticalSection.lock();
161 criticalSection.lock();
  /external/tensorflow/tensorflow/stream_executor/host/
host_stream.cc 33 mutex_lock lock(mu_);
39 mutex_lock lock(mu_);
48 mutex_lock lock(mu_);
50 completion_condition_.wait(lock);
  /frameworks/rs/
rsMutex.h 32 bool lock();
  /hardware/libhardware_legacy/include/hardware_legacy/
power.h 31 // while you have a lock held, the device will stay on at least at the
33 int acquire_wake_lock(int lock, const char* id);
  /system/bt/osi/src/
mutex.cc 27 void mutex_global_lock(void) { global_mutex.lock(); }
  /system/chre/platform/include/chre/platform/
mutex.h 46 * if the current thread already holds the lock.
48 void lock();
51 * Attempts to lock the mutex. If it is already held by some other thread,
53 * the lock.
61 * lock.
  /external/boringssl/src/crypto/
thread_win.c 45 void CRYPTO_MUTEX_init(CRYPTO_MUTEX *lock) {
46 InitializeSRWLock((SRWLOCK *) lock);
49 void CRYPTO_MUTEX_lock_read(CRYPTO_MUTEX *lock) {
50 AcquireSRWLockShared((SRWLOCK *) lock);
53 void CRYPTO_MUTEX_lock_write(CRYPTO_MUTEX *lock) {
54 AcquireSRWLockExclusive((SRWLOCK *) lock);
57 void CRYPTO_MUTEX_unlock_read(CRYPTO_MUTEX *lock) {
58 ReleaseSRWLockShared((SRWLOCK *) lock);
61 void CRYPTO_MUTEX_unlock_write(CRYPTO_MUTEX *lock) {
62 ReleaseSRWLockExclusive((SRWLOCK *) lock);
    [all...]
  /device/google/marlin/camera/QCamera2/HAL/
QCameraParametersIntf.cpp 56 Mutex::Autolock lock(mLock);
67 Mutex::Autolock lock(mLock);
81 Mutex::Autolock lock(mLock);
88 Mutex::Autolock lock(mLock);
95 Mutex::Autolock lock(mLock);
102 Mutex::Autolock lock(mLock);
109 Mutex::Autolock lock(mLock);
116 Mutex::Autolock lock(mLock);
124 Mutex::Autolock lock(mLock);
132 Mutex::Autolock lock(mLock)
    [all...]
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowPowerManagerTest.java 32 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG"); local
33 assertThat(lock.isHeld()).isFalse();
34 lock.acquire();
35 assertThat(lock.isHeld()).isTrue();
36 lock.acquire();
38 assertThat(lock.isHeld()).isTrue();
39 lock.release();
41 assertThat(lock.isHeld()).isTrue();
42 lock.release();
43 assertThat(lock.isHeld()).isFalse()
65 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG"); local
89 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG"); local
105 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG"); local
118 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG"); local
152 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG"); local
    [all...]
  /external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/
SimpleXYSeries.java 40 lock.readLock().lock();
45 lock.readLock().unlock();
56 private ReentrantReadWriteLock lock = new ReentrantReadWriteLock(true); field in class:SimpleXYSeries
95 lock.writeLock().lock();
99 lock.writeLock().unlock();
111 lock.writeLock().lock();
155 lock.writeLock().unlock();
    [all...]
  /cts/tests/tests/telecom/src/android/telecom/cts/
ConnectionTest.java 44 final Semaphore lock = new Semaphore(0); local
45 Connection connection = createConnection(lock);
47 waitForStateChange(lock);
51 waitForStateChange(lock);
55 waitForStateChange(lock);
59 waitForStateChange(lock);
63 waitForStateChange(lock);
67 waitForStateChange(lock);
71 waitForStateChange(lock);
75 waitForStateChange(lock);
131 final Semaphore lock = new Semaphore(0); local
146 final Semaphore lock = new Semaphore(0); local
161 final Semaphore lock = new Semaphore(0); local
178 final Semaphore lock = new Semaphore(0); local
194 final Semaphore lock = new Semaphore(0); local
213 final Semaphore lock = new Semaphore(0); local
227 final Semaphore lock = new Semaphore(0); local
254 final Semaphore lock = new Semaphore(0); local
281 final Semaphore lock = new Semaphore(0); local
309 final Semaphore lock = new Semaphore(0); local
338 final Semaphore lock = new Semaphore(0); local
350 final Semaphore lock = new Semaphore(0); local
366 final Semaphore lock = new Semaphore(0); local
381 final Semaphore lock = new Semaphore(0); local
    [all...]
  /external/libchrome/base/task_scheduler/
scheduler_lock_impl.cc 27 const SchedulerLockImpl* const lock,
29 DCHECK_NE(lock, predecessor) << "Reentrant locks are unsupported.";
31 allowed_predecessor_map_[lock] = predecessor;
32 AssertSafePredecessor(lock);
35 void UnregisterLock(const SchedulerLockImpl* const lock) {
37 allowed_predecessor_map_.erase(lock);
40 void RecordAcquisition(const SchedulerLockImpl* const lock) {
41 AssertSafeAcquire(lock);
42 GetAcquiredLocksOnCurrentThread()->push_back(lock);
45 void RecordRelease(const SchedulerLockImpl* const lock) {
    [all...]
  /external/python/cpython3/Python/
thread_pthread.h 123 /* A pthread mutex isn't sufficient to model the Python lock type
126 * -> a thread tries to lock a mutex it already has locked
132 * The pthread_lock struct implements a Python lock as a "locked?" bit
140 /* a <cond, mutex> pair to handle an acquire of a locked lock */
272 * Lock support.
278 sem_t *lock; local
285 lock = (sem_t *)PyMem_RawMalloc(sizeof(sem_t));
287 if (lock) {
288 status = sem_init(lock,0,1);
292 PyMem_RawFree((void *)lock);
406 pthread_lock *lock; local
    [all...]
  /external/apache-harmony/support/src/test/java/tests/support/
Support_StringWriter.java 29 * <code>lock</code> used to synchronize access to this Writer.
34 lock = buf;
40 * the <code>lock</code> used to synchronize access to this Writer.
45 lock = buf;
77 synchronized (lock) {
91 synchronized (lock) {
111 synchronized (lock) {
128 synchronized (lock) {
141 synchronized (lock) {
160 synchronized (lock) {
    [all...]
  /external/deqp/framework/platform/lnx/
tcuLnx.cpp 43 de::ScopedLock lock(m_mutex);
49 de::ScopedLock lock(m_mutex);
  /external/swiftshader/third_party/LLVM/include/llvm/Support/
MutexGuard.h 21 /// Instances of this class acquire a given Mutex Lock when constructed and
22 /// hold that lock until destruction. The intention is to instantiate one of
34 /// holds - Returns true if this locker instance holds the specified lock.
37 bool holds(const sys::Mutex& lock) const { return &M == &lock; }
  /external/tensorflow/tensorflow/core/platform/cloud/
now_seconds_env.h 32 mutex_lock lock(mu_);
38 mutex_lock lock(mu_);
  /external/toolchain-utils/automation/clients/helper/
jobs.py 7 def CreateLinuxJob(label, command, lock=False, timeout=4 * 60 * 60):
10 lock_required=lock))
  /frameworks/av/include/private/media/
AudioEffectShared.h 37 Mutex lock; member in struct:android::effect_param_cblk_t
43 : lock(Mutex::SHARED), clientIndex(0), serverIndex(0) {}
  /libcore/ojluni/src/main/java/java/io/
Writer.java 69 protected Object lock; field in class:Writer
76 this.lock = this;
83 * @param lock
86 protected Writer(Object lock) {
87 if (lock == null) {
90 this.lock = lock;
108 synchronized (lock) {
181 synchronized (lock) {
  /libcore/support/src/test/java/tests/support/
Support_StringWriter.java 29 * <code>lock</code> used to synchronize access to this Writer.
34 lock = buf;
40 * the <code>lock</code> used to synchronize access to this Writer.
45 lock = buf;
79 synchronized (lock) {
93 synchronized (lock) {
117 synchronized (lock) {
136 synchronized (lock) {
151 synchronized (lock) {
174 synchronized (lock) {
    [all...]
  /packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
TelecomTestCase.java 52 final CountDownLatch lock = new CountDownLatch(1); local
53 h.post(lock::countDown);
54 while (lock.getCount() > 0) {
56 lock.await(timeoutMillis, TimeUnit.MILLISECONDS);
64 final CountDownLatch lock = new CountDownLatch(1); local
65 h.postDelayed(lock::countDown, delayMs);
66 while (lock.getCount() > 0) {
68 lock.await(timeoutMillis, TimeUnit.MILLISECONDS);

Completed in 699 milliseconds

1 2 3 4 56 7 8 91011>>