HomeSort by relevance Sort by last modified time
    Searched refs:Lock (Results 1 - 25 of 141) sorted by null

1 2 3 4 5 6

  /libcore/luni/src/main/java/java/util/concurrent/locks/
ReadWriteLock.java 11 * Lock locks}, one for read-only operations and one for writing.
12 * The {@link #readLock read lock} may be held simultaneously by
14 * {@link #writeLock write lock} is exclusive.
18 * (as specified in the {@link Lock} interface) also hold with respect
20 * acquiring the read lock will see all updates made upon previous
21 * release of the write lock.
23 * <p>A read-write lock allows for a greater level of concurrency in
24 * accessing shared data than that permitted by a mutual exclusion lock.
30 * lock will lead to performance improvements over the use of a mutual
31 * exclusion lock. In practice this increase in concurrency will only be full
    [all...]
Lock.java 11 * {@code Lock} implementations provide more extensive locking
17 * <p>A lock is a tool for controlling access to a shared resource by
18 * multiple threads. Commonly, a lock provides exclusive access to a
19 * shared resource: only one thread at a time can acquire the lock and
20 * all access to the shared resource requires that the lock be
22 * a shared resource, such as the read lock of a {@link ReadWriteLock}.
25 * access to the implicit monitor lock associated with every object, but
26 * forces all lock acquisition and release to occur in a block-structured way:
38 * acquire the lock of node A, then node B, then release A and acquire
40 * {@code Lock} interface enable the use of such techniques b
154 void lock(); method in interface:Lock
    [all...]
  /external/chromium/base/
lock.h 12 class Lock {
14 Lock() : lock_() {}
15 ~Lock() {}
16 void Acquire() { lock_.Lock(); }
18 // If the lock is not held, take it and return true. If the lock is already
22 // In debug builds this method checks that the lock has been acquired by the
23 // calling thread. If the lock has not been acquired, then the method
28 // Return the underlying lock implementation.
29 // TODO(awalker): refactor lock and condition variables so that this i
    [all...]
watchdog.h 24 #include "base/lock.h"
71 Lock lock_; // Mutex for state_.
87 static Lock static_lock_; // Lock for access of static data...
lock_impl.h 19 // This class implements the underlying platform-specific spin-lock mechanism
20 // used for the Lock class. Most users should not use LockImpl directly, but
21 // should instead use Lock.
33 // If the lock is not held, take it and return true. If the lock is already
37 // Take the lock, blocking until it is available if necessary.
38 void Lock();
40 // Release the lock. This must only be called by the lock's holder: after
41 // a successful call to Try, or a call to Lock
    [all...]
condition_variable.h 77 #include "base/lock.h"
85 // Construct a cv for use with ONLY one user lock.
86 explicit ConditionVariable(Lock* user_lock);
107 // All calls to methods MUST be done under protection of a lock so that links
108 // can be validated. Without the lock, some links might asynchronously
158 Lock internal_lock_;
160 // Lock that is acquired before calling Wait().
161 Lock& user_lock_;
worker_pool_linux_unittest.cc 10 #include "base/lock.h"
24 Lock* lock() { return &pool_->lock_; } function in class:base::LinuxDynamicThreadPool::LinuxDynamicThreadPoolPeer
55 IncrementingTask(Lock* counter_lock,
57 Lock* unique_threads_lock,
76 Lock* counter_lock_;
77 Lock* unique_threads_lock_;
88 BlockingIncrementingTask(Lock* counter_lock,
90 Lock* unique_threads_lock,
92 Lock* num_waiting_to_start_lock
    [all...]
at_exit.h 11 #include "base/lock.h"
17 // happen at a really bad time and under the loader lock. This facility is
62 Lock lock_;
worker_pool_linux.h 32 #include "base/lock.h"
70 Lock lock_; // Protects all the variables below.
  /external/chromium/net/disk_cache/
file_lock.cc 15 void FileLock::Lock() {
file_lock.h 14 // This class implements a file lock that lives on the header of a memory mapped
15 // file. This is NOT a thread related lock, it is a lock to detect corruption
17 // The lock is acquired on the constructor and released on the destructor.
21 // FileLock lock(header);
23 // // At this point the destructor is going to release the lock.
25 // It is important to perform Lock() and Unlock() operations in the right order,
26 // because otherwise the desired effect of the "lock" will not be achieved. If
28 // outside the lock.
36 virtual void Lock();
    [all...]
  /development/host/windows/usb/api/
adb_api_instance.cpp 36 adb_app_instance_map_locker.Lock();
adb_object_handle.cpp 67 // We have to hold this lock while we're dealing with the handle
69 the_map_locker.Lock();
106 the_map_locker.Lock();
151 the_map_locker.Lock();
  /external/qemu/distrib/sdl-1.2.12/src/video/
SDL_yuvfuncs.h 33 int (*Lock)(_THIS, SDL_Overlay *overlay);
  /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());
test-platform-linux.cc 3 // Tests of the TokenLock class from lock.h
30 CHECK_EQ(0, mutex->Lock());
36 CHECK_EQ(0, mutex->Lock());
53 // Runs two threads that repeatedly acquire the lock and conditionally
test-platform-nullos.cc 3 // Tests of the TokenLock class from lock.h
30 CHECK_EQ(0, mutex->Lock());
36 CHECK_EQ(0, mutex->Lock());
53 // Runs two threads that repeatedly acquire the lock and conditionally
  /external/chromium/sdch/open-vcdiff/src/
mutex.h 77 // look at the bool, and not try to lock/unlock until the bool makes
84 // state between a call to Lock() and a call to Unlock() (that would
85 // require a global constructor in one translation unit to call Lock()
105 typedef int MutexType; // to keep a lock-count
146 inline void Lock(); // Block if needed until free then acquire exclusively
147 inline void Unlock(); // Release a lock acquired via Lock()
149 inline bool TryLock(); // If free, Lock() and return true, else return false
152 // be implemented as synonyms to Lock() and Unlock(). So you can use
157 inline void WriterLock() { Lock(); } // Acquire an exclusive loc
    [all...]
  /external/webkit/WebCore/platform/haiku/
PasteboardHaiku.cpp 57 if (!clipboard.Lock())
74 if (!clipboard.Lock())
97 if (!clipboard.Lock())
122 if (!clipboard.Lock())
145 if (!clipboard.Lock())
ClipboardHaiku.cpp 52 if (be_clipboard->Lock()) {
66 if (be_clipboard->Lock()) {
78 if (be_clipboard->Lock()) {
95 if (be_clipboard->Lock()) {
117 if (be_clipboard->Lock()) {
199 if (be_clipboard->Lock()) {
  /external/qemu/distrib/sdl-1.2.12/src/video/bwindow/
SDL_syswm.cc 54 SDL_Win->Lock();
68 SDL_Win->Lock();
  /external/qemu/distrib/sdl-1.2.12/src/cdrom/macosx/
SDLOSXCAGuard.h 84 Lock() will return true if and only if the guard is locked on that call.
99 int (*Lock)(struct S_SDLOSXCAGuard *cag);
101 int (*Try)(struct S_SDLOSXCAGuard *cag, int *outWasLocked); /* returns true if lock is free, false if not */
CDPlayer.h 43 void Lock ();
SDL_syscdrom.c 116 Lock ();
328 Lock ();
349 Lock();
389 Lock ();
411 Lock ();
433 Lock ();
463 Lock ();
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
BarrierConsumer.java 21 import java.util.concurrent.locks.Lock;
30 private final Lock mLock = new ReentrantLock();
55 mLock.lock();
73 mLock.lock();

Completed in 282 milliseconds

1 2 3 4 5 6