HomeSort by relevance Sort by last modified time
    Searched full:lock (Results 101 - 125 of 3434) sorted by null

1 2 3 45 6 7 8 91011>>

  /prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-x86/usr/include/asm/
spinlock_32.h 26 #define _raw_spin_relax(lock) cpu_relax()
27 #define _raw_read_relax(lock) cpu_relax()
28 #define _raw_write_relax(lock) cpu_relax()
  /prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-x86/usr/include/asm/
spinlock_32.h 26 #define _raw_spin_relax(lock) cpu_relax()
27 #define _raw_read_relax(lock) cpu_relax()
28 #define _raw_write_relax(lock) cpu_relax()
  /prebuilt/ndk/android-ndk-r6/platforms/android-9/arch-x86/usr/include/asm/
spinlock_32.h 26 #define _raw_spin_relax(lock) cpu_relax()
27 #define _raw_read_relax(lock) cpu_relax()
28 #define _raw_write_relax(lock) cpu_relax()
  /bionic/libc/bionic/
pthread-rwlocks.c 34 * Possible states of a read/write lock:
37 * - one or more readers sharing the lock at the same time (read-locked)
38 * - one writer holding the lock (write-lock)
41 * - trying to get the write-lock while there are any readers blocks
42 * - trying to get the read-lock while there is a writer blocks
43 * - a single thread can acquire the lock multiple times in the same mode
46 * the lock in two distinct modes (e.g. write after read, or read after write).
49 * block as soon as there is a waiting writer on the lock. However, it cannot
50 * completely eliminate it: each time the lock is unlocked, all waiting thread
    [all...]
  /libcore/luni/src/main/java/java/util/concurrent/locks/
ReentrantReadWriteLock.java 21 * ordering for lock access. However, it does support an optional
27 * to the read and write lock is unspecified, subject to reentrancy
28 * constraints. A nonfair lock that is continuously contended may
30 * will normally have higher throughput than a fair lock.
35 * approximately arrival-order policy. When the currently held lock
37 * be assigned the write lock, or if there is a group of reader threads
39 * assigned the read lock.
41 * <p>A thread that tries to acquire a fair read lock (non-reentrantly)
42 * will block if either the write lock is held, or there is a waiting
43 * writer thread. The thread will not acquire the read lock unti
701 public void lock() { method in class:ReentrantReadWriteLock.ReadLock
915 public void lock() { method in class:ReentrantReadWriteLock.WriteLock
    [all...]
  /external/kernel-headers/original/asm-x86/
spinlock_types.h 15 unsigned int lock; member in struct:__anon7105
  /external/valgrind/main/helgrind/tests/
tc04_free_lock.c 7 /* Delete memory that has a held lock and see what happens. */
10 pthread_mutex_t lock; int morestuff[2000]; } XX; member in struct:__anon12720
20 pthread_mutex_init( &xx->lock, NULL );
22 pthread_mutex_lock( &xx->lock );
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
  /external/kernel-headers/original/linux/
rwsem.h 28 * lock for reading
38 * lock for writing
48 * release a read lock
53 * release a write lock
58 * downgrade write lock to read lock
66 * lock instance multiple times), but multiple locks of the
67 * same lock class might be taken, if the order of the locks
72 * the explicit definition of lock class keys and the use of
73 * lockdep_set_class() at lock initialization time
    [all...]
android_power.h 55 //void android_free_suspend_lock(android_suspend_lock_t *lock);
56 int android_init_suspend_lock(android_suspend_lock_t *lock);
57 void android_uninit_suspend_lock(android_suspend_lock_t *lock);
58 void android_lock_suspend(android_suspend_lock_t *lock);
59 void android_lock_suspend_auto_expire(android_suspend_lock_t *lock, int timeout);
60 void android_unlock_suspend(android_suspend_lock_t *lock);
mutex.h 37 * that make lock debugging easier and faster:
70 struct mutex *lock; member in struct:mutex_waiter
105 extern void __mutex_init(struct mutex *lock, const char *name,
110 * @lock: the mutex to be queried
114 static inline int fastcall mutex_is_locked(struct mutex *lock)
116 return atomic_read(&lock->count) != 1;
123 extern void fastcall mutex_lock(struct mutex *lock);
124 extern int fastcall mutex_lock_interruptible(struct mutex *lock);
127 extern void mutex_lock_nested(struct mutex *lock, unsigned int subclass);
129 # define mutex_lock_nested(lock, subclass) mutex_lock(lock
    [all...]
  /libcore/luni/src/main/java/java/util/concurrent/
DelayQueue.java 42 private transient final ReentrantLock lock = new ReentrantLock(); field in class:DelayQueue
68 private final Condition available = lock.newCondition();
106 final ReentrantLock lock = this.lock; local
107 lock.lock();
116 lock.unlock();
153 final ReentrantLock lock = this.lock; local
154 lock.lock()
174 final ReentrantLock lock = this.lock; local
218 final ReentrantLock lock = this.lock; local
267 final ReentrantLock lock = this.lock; local
277 final ReentrantLock lock = this.lock; local
297 final ReentrantLock lock = this.lock; local
351 final ReentrantLock lock = this.lock; local
384 final ReentrantLock lock = this.lock; local
430 final ReentrantLock lock = this.lock; local
444 final ReentrantLock lock = this.lock; local
    [all...]
  /external/jsr305/ri/src/main/java/javax/annotation/concurrent/
GuardedBy.java 19 * when holding a particular lock, which may be a built-in (synchronization)
20 * lock, or may be an explicit java.util.concurrent.Lock.
22 * The argument determines which lock guards the annotated field or method: this :
27 * object to which the field refers. field-name : The lock object is referenced
29 * class-name.field-name : The lock object is reference by the static field
30 * specified by class-name.field-name. method-name() : The lock object is
32 * object for the specified class should be used as the lock object.
  /external/kernel-headers/original/asm-arm/
mman.h 14 #define MCL_CURRENT 1 /* lock all current mappings */
15 #define MCL_FUTURE 2 /* lock all future mappings */
  /external/valgrind/main/none/tests/
pth_mutexspeed.c 11 printf("begin %d lock--unlocks\n", n);
17 printf("done %d lock--unlocks\n", n);
  /external/chromium/net/base/
android_network_library.cc 9 #include "base/synchronization/lock.h"
11 using base::Lock;
23 AutoLock lock(lock_);
32 AutoLock lock(lock_);
37 AutoLock lock(lock_);
43 Lock lock_;
openssl_memory_private_key_store.cc 13 #include "base/synchronization/lock.h"
29 base::AutoLock lock(lock_);
38 base::AutoLock lock(lock_);
44 base::AutoLock lock(lock_);
55 base::Lock lock_;
  /external/v8/test/cctest/
test-lock.cc 3 // Tests of the TokenLock class from lock.h
19 CHECK_EQ(0, mutex->Lock()); // acquire the lock with the right token
27 CHECK_EQ(0, mutex->Lock());
35 CHECK_EQ(0, mutex->Lock());
37 CHECK_EQ(0, mutex->Lock());
  /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
  /external/valgrind/tsan/
ts_event_names.h 5 "READER_LOCK", // {tid, pc, lock, 0}
6 "WRITER_LOCK", // {tid, pc, lock, 0}
7 "UNLOCK", // {tid, pc, lock, 0}
8 "UNLOCK_OR_INIT", // {tid, pc, lock, 0}
9 "LOCK_CREATE", // {tid, pc, lock, 0}
10 "LOCK_DESTROY", // {tid, pc, lock, 0}
44 "SET_LOCK_NAME", // {tid, pc, lock, lock_name_str}
  /system/core/libcutils/
threads.c 34 pthread_mutex_lock( &store->lock );
37 pthread_mutex_unlock(&store->lock);
42 pthread_mutex_unlock( &store->lock );
65 InitializeCriticalSection( &store->lock );
71 EnterCriticalSection( &store->lock );
75 LeaveCriticalSection( &store->lock );
80 LeaveCriticalSection( &store->lock );
  /external/dbus/dbus/
dbus-sysdeps-pthread.c 47 pthread_mutex_t lock; /**< lock protecting count field */ member in struct:__anon5485
48 volatile int count; /**< count of how many times lock holder has recursively locked */
49 volatile pthread_t holder; /**< holder of the lock if count >0,
90 result = pthread_mutex_init (&pmutex->lock, NULL);
107 * once the lock is held (which means we've set it).
120 PTHREAD_CHECK ("pthread_mutex_destroy", pthread_mutex_destroy (&pmutex->lock));
131 /* If the count is > 0 then someone had the lock, maybe us. If it is
134 * we assume that this thread doesn't have the lock.
140 /* We know we don't have the lock; someone may have the lock. *
    [all...]
  /frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
VariableSpeed.java 53 private final Object lock = new Object(); field in class:VariableSpeed
54 @GuardedBy("lock") private MediaPlayerDataSource mDataSource;
55 @GuardedBy("lock") private boolean mIsPrepared;
56 @GuardedBy("lock") private boolean mHasDuration;
57 @GuardedBy("lock") private boolean mHasStartedPlayback;
58 @GuardedBy("lock") private CountDownLatch mEngineInitializedLatch;
59 @GuardedBy("lock") private CountDownLatch mPlaybackFinishedLatch;
60 @GuardedBy("lock") private boolean mHasBeenReleased = true;
61 @GuardedBy("lock") private boolean mIsReadyToReUse = true;
62 @GuardedBy("lock") private boolean mSkipCompletionReport
    [all...]
  /external/llvm/include/llvm/Support/
RWMutex.h 1 //===- RWMutex.h - Reader/Writer Mutual Exclusion Lock ----------*- C++ -*-===//
31 /// Initializes the lock but doesn't acquire it.
35 /// Releases and removes the lock
44 /// Attempts to unconditionally acquire the lock in reader mode. If the
45 /// lock is held by a writer, this method will wait until it can acquire
46 /// the lock.
48 /// @brief Unconditionally acquire the lock in reader mode.
51 /// Attempts to release the lock in reader mode.
53 /// @brief Unconditionally release the lock in reader mode.
56 /// Attempts to unconditionally acquire the lock in reader mode. If th
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/thread/dc/
SDL_syscond.c 34 SDL_mutex *lock; member in struct:SDL_cond
48 cond->lock = SDL_CreateMutex();
52 if ( ! cond->lock || ! cond->wait_sem || ! cond->wait_done ) {
72 if ( cond->lock ) {
73 SDL_DestroyMutex(cond->lock);
90 SDL_LockMutex(cond->lock);
94 SDL_UnlockMutex(cond->lock);
97 SDL_UnlockMutex(cond->lock);
114 SDL_LockMutex(cond->lock);
126 SDL_UnlockMutex(cond->lock);
    [all...]

Completed in 280 milliseconds

1 2 3 45 6 7 8 91011>>