HomeSort by relevance Sort by last modified time
    Searched refs:Lock (Results 76 - 100 of 957) sorted by null

1 2 34 5 6 7 8 91011>>

  /libcore/luni/src/main/java/java/util/concurrent/locks/
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
155 void lock(); method in interface:Lock
    [all...]
  /external/ceres-solver/internal/ceres/
mutex.h 73 // look at the bool, and not try to lock/unlock until the bool makes
80 // state between a call to Lock() and a call to Unlock() (that would
81 // require a global constructor in one translation unit to call Lock()
99 typedef int MutexType; // to keep a lock-count
154 inline void Lock(); // Block if needed until free then acquire exclusively
155 inline void Unlock(); // Release a lock acquired via Lock()
157 inline bool TryLock(); // If free, Lock() and return true, else return false
160 // be implemented as synonyms to Lock() and Unlock(). So you can use
165 inline void WriterLock() { Lock(); } // Acquire an exclusive loc
    [all...]
  /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/valgrind/unittest/
thread_wrappers_win.h 84 void Lock() { ::EnterCriticalSection(&cs_);}
96 void ReaderLock() { Lock(); }
100 void LockWhen(Condition cond) { Lock(); WaitLoop(cond); }
101 void ReaderLockWhen(Condition cond) { Lock(); WaitLoop(cond); }
105 { Lock(); return WaitLoopWithTimeout(cond, millis); }
107 { Lock(); return WaitLoopWithTimeout(cond, millis); }
118 Lock();
130 Lock();
158 mu->Lock();
172 mu->Lock();
    [all...]
  /external/chromium/base/threading/
watchdog.h 26 #include "base/synchronization/lock.h"
72 Lock lock_; // Mutex for state_.
88 static Lock static_lock_; // Lock for access of static data...
  /external/chromium/chrome/browser/printing/
print_job_manager.h 12 #include "base/synchronization/lock.h"
65 base::Lock lock_;
68 base::Lock enabled_lock_;
  /external/chromium/chrome/common/deprecated/
event_sys.h 14 class Lock;
32 template <typename EventTraits, typename NotifyLock = base::Lock,
  /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_;
  /external/chromium_org/base/memory/
discardable_memory_unittest.cc 11 // Test Lock() and Unlock() functionalities.
25 EXPECT_EQ(DISCARDABLE_MEMORY_SUCCESS, memory.Lock());
55 EXPECT_EQ(DISCARDABLE_MEMORY_PURGED, memory.Lock());
discardable_memory.cc 45 LockDiscardableMemoryStatus DiscardableMemory::Lock() {
discardable_memory.h 35 // preferred pattern of usage for DiscardableMemory is to lock down the
63 // Lock the memory so that it will not be purged by the system. Returns
69 LockDiscardableMemoryStatus Lock() WARN_UNUSED_RESULT;
72 // after every successful lock call.
  /external/chromium_org/chrome_frame/
scoped_initialization_manager.h 10 #include "base/synchronization/lock.h"
41 static base::LazyInstance<base::Lock>::Leaky lock_;
46 template<class Traits> base::LazyInstance<base::Lock>::Leaky
  /external/chromium_org/tools/gn/
item_tree.h 10 #include "base/synchronization/lock.h"
45 // This lock must be held when calling the "Locked" functions below.
46 base::Lock& lock() const { return lock_; } function in class:ItemTree
50 // The lock must be held.
56 // The lock must be held.
73 // The lock should not be held.
84 mutable base::Lock lock_;
  /external/qemu/distrib/sdl-1.2.15/src/video/bwindow/
SDL_syswm.cc 55 SDL_Win->Lock();
69 SDL_Win->Lock();
  /external/smack/src/com/kenai/jbosh/
RequestIDSequence.java 21 import java.util.concurrent.locks.Lock;
63 * Internal lock.
65 private static final Lock LOCK = new ReentrantLock();
109 LOCK.lock();
115 LOCK.unlock();
  /external/chromium/base/synchronization/
lock_impl.h 23 // This class implements the underlying platform-specific spin-lock mechanism
24 // used for the Lock class. Most users should not use LockImpl directly, but
25 // should instead use Lock.
37 // If the lock is not held, take it and return true. If the lock is already
41 // Take the lock, blocking until it is available if necessary.
42 void Lock();
44 // Release the lock. This must only be called by the lock's holder: after
45 // a successful call to Try, or a call to Lock
    [all...]
  /external/chromium/chrome/browser/download/
download_types.h 13 #include "base/synchronization/lock.h"
24 // is synchronized via the lock. Each entry in 'contents' represents one data
30 base::Lock lock; member in struct:DownloadBuffer
  /external/chromium/chrome/browser/importer/
firefox_profile_lock.h 75 void Lock();
78 // Returns true if we lock the profile successfully.
90 // Full path of the lock file in the profile folder.
93 // The handle of the lock file.
99 // On Posix systems Firefox apparently first tries to put a fcntl lock
104 // Method that tries to put a fcntl lock on file specified by |lock_file_|.
105 // Returns false if lock is already held by another process. true in all
  /external/chromium_org/base/
at_exit.h 13 #include "base/synchronization/lock.h"
19 // happen at a really bad time and under the loader lock. This facility is
60 base::Lock lock_;
  /external/chromium_org/content/browser/
cross_site_request_manager.h 12 #include "base/synchronization/lock.h"
50 // You must acquire this lock before reading or writing any members of this
51 // class. You must not block while holding this lock.
52 base::Lock lock_;
  /external/chromium_org/media/audio/
audio_power_monitor.h 12 #include "base/synchronization/lock.h"
78 base::Lock reading_lock_;
  /external/chromium_org/native_client_sdk/src/libraries/sdk_util/
auto_lock.h 16 #define AUTO_LOCK(lock) \
17 ::sdk_util::AutoLock Lock##__LINE__(lock);
21 AutoLock(const SimpleLock& lock) {
22 lock_ = lock.mutex();
  /external/chromium_org/webkit/child/
web_discardable_memory_impl.cc 19 bool WebDiscardableMemoryImpl::lock() { function in class:webkit_glue::WebDiscardableMemoryImpl
20 base::LockDiscardableMemoryStatus status = discardable_->Lock();
  /external/qemu/distrib/sdl-1.2.15/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 */
  /external/valgrind/main/helgrind/
hg_lock_n_thread.c 65 static Bool is_sane_Lock_BASE ( Lock* lock )
67 if (lock == NULL
68 || (lock->magic != LockN_MAGIC && lock->magic != LockP_MAGIC))
70 switch (lock->kind) {
74 if (lock->heldBy == NULL) {
75 if (lock->acquired_at != NULL) return False;
77 return !lock->heldW;
79 if (lock->acquired_at == NULL) return False
    [all...]

Completed in 578 milliseconds

1 2 34 5 6 7 8 91011>>