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

1 2 3 4 5 6 7

  /external/chromium_org/ppapi/utility/threading/
lock.cc 5 #include "ppapi/utility/threading/lock.h"
11 Lock::Lock() {
17 Lock::~Lock() {
21 void Lock::Acquire() {
25 void Lock::Release() {
31 Lock::Lock() {
35 Lock::~Lock()
    [all...]
lock.h 16 /// A simple wrapper around a platform-specific lock. See also AutoLock.
17 class Lock {
19 /// Creates a lock in the "not held" state.
20 Lock();
22 /// Destroys the lock.
23 ~Lock();
25 /// Acquires the lock, blocking if it's already held by a different thread.
26 /// The lock must not already be held on the current thread (i.e. recursive
30 /// acquire and release the lock.
33 /// Releases the lock. This must be paired with a call to Acquire()
    [all...]
  /external/sfntly/cpp/src/sfntly/port/
lock.cc 17 #include "sfntly/port/lock.h"
23 Lock::Lock() {
29 Lock::~Lock() {
33 bool Lock::Try() {
40 void Lock::Acquire() {
44 void Lock::Unlock() {
50 Lock::Lock() {
    [all...]
lock.h 37 class Lock {
39 Lock();
40 ~Lock();
42 // If the lock is not held, take it and return true. If the lock is already
46 // Take the lock, blocking until it is available if necessary.
49 // Release the lock. This must only be called by the lock's holder: after
50 // a successful call to Try, or a call to Lock.
55 NO_COPY_AND_ASSIGN(Lock);
    [all...]
  /external/chromium/chrome/browser/importer/
firefox_profile_lock_win.cc 58 void FirefoxProfileLock::Lock() {
firefox_profile_lock_posix.cc 63 void FirefoxProfileLock::Lock() {
88 // This function tries to lock Firefox profile using fcntl(). The return
90 // of lock.
91 // if return == false: Another process has lock to the profile.
92 // if return == true && HasAcquired() == true: successfully acquired the lock.
93 // if return == false && HasAcquired() == false: Failed to acquire lock due
94 // to some error (so that we can try alternate method of profile lock).
101 struct flock lock; local
102 lock.l_start = 0;
103 lock.l_len = 0
    [all...]
  /external/chromium/net/disk_cache/
file_lock.cc 15 void FileLock::Lock() {
  /external/chromium_org/chrome/browser/importer/
firefox_profile_lock_win.cc 58 void FirefoxProfileLock::Lock() {
firefox_profile_lock_posix.cc 63 void FirefoxProfileLock::Lock() {
88 // This function tries to lock Firefox profile using fcntl(). The return
90 // of lock.
91 // if return == false: Another process has lock to the profile.
92 // if return == true && HasAcquired() == true: successfully acquired the lock.
93 // if return == false && HasAcquired() == false: Failed to acquire lock due
94 // to some error (so that we can try alternate method of profile lock).
101 struct flock lock; local
102 lock.l_start = 0;
103 lock.l_len = 0
    [all...]
  /external/chromium_org/base/synchronization/
lock.cc 5 // This file is used for debugging assertion support. The Lock class
11 #include "base/synchronization/lock.h"
18 Lock::Lock() : lock_() {
23 Lock::~Lock() {
28 void Lock::AssertAcquired() const {
33 void Lock::CheckHeldAndUnmark() {
40 void Lock::CheckUnheldAndMark() {
lock_impl_posix.cc 16 // In debug, setup attributes for lock error checking.
27 // In release, go with the default lock attributes.
43 void LockImpl::Lock() {
lock_impl_win.cc 27 void LockImpl::Lock() {
  /external/chromium_org/third_party/libphonenumber/src/phonenumbers/base/synchronization/
lock_posix.h 28 class Lock {
30 Lock() {
36 ~Lock() {
55 DISALLOW_COPY_AND_ASSIGN(Lock);
lock.h 26 typedef boost::mutex Lock;
37 // Dummy lock implementation on non-POSIX platforms. If you are running on a
45 class Lock {
47 Lock() : thread_checker_() {}
73 AutoLock(Lock& lock) : lock_(lock) {
82 Lock& lock_;
  /external/clang/test/SemaCXX/
operator-arrow-temporary.cpp 8 template<int x> struct Lock {
9 ~Lock() { int a[x]; } // expected-error {{declared as an array with a negative size}}
14 Lock<-1> operator->();
17 // Make sure we try to instantiate the destructor for Lock here
  /external/chromium/base/synchronization/
lock.cc 5 // This file is used for debugging assertion support. The Lock class
11 #include "base/synchronization/lock.h"
16 Lock::Lock() : lock_() {
21 void Lock::AssertAcquired() const {
26 void Lock::CheckHeldAndUnmark() {
33 void Lock::CheckUnheldAndMark() {
lock_impl_posix.cc 16 // In debug, setup attributes for lock error checking.
27 // In release, go with the default lock attributes.
43 void LockImpl::Lock() {
lock_impl_win.cc 27 void LockImpl::Lock() {
  /external/chromium_org/gpu/command_buffer/client/
atomicops.h 17 class GPU_EXPORT Lock {
19 Lock();
20 ~Lock();
29 DISALLOW_COPY_AND_ASSIGN(Lock);
32 // A helper class that acquires the given Lock while the AutoLock is in scope.
35 explicit AutoLock(Lock& lock) : lock_(lock) {
45 Lock& lock_;
atomicops.cc 10 #include "base/synchronization/lock.h"
70 class LockImpl : public base::Lock {
75 Lock::Lock()
79 Lock::~Lock() {
82 void Lock::Acquire() {
86 void Lock::Release() {
90 bool Lock::Try() {
94 void Lock::AssertAcquired() const
    [all...]
  /external/chromium_org/net/disk_cache/
file_lock.cc 33 void FileLock::Lock() {
  /external/qemu/distrib/sdl-1.2.15/src/video/
SDL_yuvfuncs.h 33 int (*Lock)(_THIS, SDL_Overlay *overlay);
  /frameworks/ex/variablespeed/jni/
no_synchronization.h 33 void Lock() {}
  /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...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.condition/thread.condition.condvar/
destructor.pass.cpp 23 typedef std::unique_lock<std::mutex> Lock;
30 Lock lk(m);
38 Lock lk(m);
49 Lock lk(m);

Completed in 480 milliseconds

1 2 3 4 5 6 7