Searched refs:locked (Results 1 - 25 of 192) sorted by relevance

12345678

/external/llvm/include/llvm/Support/
H A DUniqueLock.h10 // This file defines a guard for a block of code that ensures a Mutex is locked
23 /// an associated mutex, which is guaranteed to be locked upon creation
30 bool locked; member in class:llvm::unique_lock
35 unique_lock() : M(nullptr), locked(false) {}
36 explicit unique_lock(MutexT &m) : M(&m), locked(true) { M->lock(); }
42 locked = o.locked;
44 o.locked = false;
50 assert(!locked && "mutex already locked!");
[all...]
/external/libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/
H A Dtry_lock.pass.cpp35 bool locked() const {return locked_;} function in class:L0
53 bool locked() const {return locked_;} function in class:L1
71 bool locked() const {return locked_;} function in class:L2
80 assert(l0.locked());
81 assert(l1.locked());
87 assert(!l0.locked());
88 assert(!l1.locked());
94 assert(!l0.locked());
95 assert(!l1.locked());
107 assert(!l0.locked());
[all...]
H A Dlock.pass.cpp40 bool locked() const {return locked_;} function in class:L0
63 bool locked() const {return locked_;} function in class:L1
86 bool locked() const {return locked_;} function in class:L2
95 assert(l0.locked());
96 assert(l1.locked());
102 assert(l0.locked());
103 assert(l1.locked());
109 assert(l0.locked());
110 assert(l1.locked());
122 assert(!l0.locked());
[all...]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowPowerManager.java34 private boolean locked; field in class:ShadowPowerManager.ShadowWakeLock
47 locked = true;
54 if (--refCount < 0) throw new RuntimeException("WakeLock under-locked");
56 locked = false;
62 return refCounted ? refCount > 0 : locked;
/external/valgrind/drd/tests/
H A Dannotate_rwlock.c28 volatile int locked; member in struct:__anon20321
41 p->locked = 0;
50 assert(p->locked == 0);
59 while (__sync_val_compare_and_swap(&p->locked, 0, 1) == 1)
69 (void) __sync_fetch_and_sub(&p->locked, 1);
75 (void) __sync_fetch_and_sub(&p->locked, 1);
83 while (__sync_val_compare_and_swap(&p->locked, 0, 1) == 1)
93 (void) __sync_fetch_and_sub(&p->locked, 1);
99 (void) __sync_fetch_and_sub(&p->locked, 1);
105 while (__sync_val_compare_and_swap(&p->locked,
[all...]
/external/valgrind/helgrind/tests/
H A Dannotate_rwlock.c38 volatile int locked; member in struct:__anon20398
51 p->locked = 0;
60 assert(p->locked == 0);
69 while (__sync_val_compare_and_swap(&p->locked, 0, 1) == 1)
79 (void) __sync_fetch_and_sub(&p->locked, 1);
85 (void) __sync_fetch_and_sub(&p->locked, 1);
94 while (__sync_val_compare_and_swap(&p->locked, 0, 1) == 1)
104 (void) __sync_fetch_and_sub(&p->locked, 1);
110 (void) __sync_fetch_and_sub(&p->locked, 1);
117 while (__sync_val_compare_and_swap(&p->locked,
[all...]
/external/compiler-rt/test/tsan/
H A Dreal_deadlock_detector_stress_test.cc44 std::vector<int> locked; local
47 if (what < 4 && locked.size() < kMaxPerThread) {
50 if (!locked.empty()) {
51 max_locked = *std::max_element(locked.begin(), locked.end());
122 locked.push_back(id);
123 } else if (what < 9 && !locked.empty()) {
125 int pos = rand_r(&rnd) % locked.size();
126 int id = locked[pos];
127 locked[po
[all...]
/external/parameter-framework/asio/include/asio/detail/
H A Dposix_event.hpp52 ASIO_ASSERT(lock.locked());
62 ASIO_ASSERT(lock.locked());
74 ASIO_ASSERT(lock.locked());
89 ASIO_ASSERT(lock.locked());
98 ASIO_ASSERT(lock.locked());
/external/parameter-framework/asio-1.10.6/include/asio/detail/
H A Dposix_event.hpp52 ASIO_ASSERT(lock.locked());
62 ASIO_ASSERT(lock.locked());
74 ASIO_ASSERT(lock.locked());
89 ASIO_ASSERT(lock.locked());
98 ASIO_ASSERT(lock.locked());
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/core/command/
H A DInvocationRecord.java37 * The {@link #lock()} method makes an instance of this class immutable. After an instance is locked,
49 private boolean locked = false; field in class:InvocationRecord
64 * Lock this instance, making it immutable. After an instance is locked,
69 locked = true;
73 * Return true if this object has been locked, false otherwise. See {@link #lock()}.
75 * @return true if this object has been locked, false otherwise.
78 return locked;
106 * an <code>AssertFailedException</code> if this object has been locked. See {@link #lock()}.
110 * @throws AssertFailedException - if the key is null or this object has been locked.
114 Assert.isFalse(locked, "Th
[all...]
/external/mockftpserver/branches/1.x_Branch/src/main/java/org/mockftpserver/core/command/
H A DInvocationRecord.java37 * The {@link #lock()} method makes an instance of this class immutable. After an instance is locked,
50 private boolean locked = false; field in class:InvocationRecord
64 * Lock this instance, making it immutable. After an instance is locked,
69 locked = true;
73 * Return true if this object has been locked, false otherwise. See {@link #lock()}.
74 * @return true if this object has been locked, false otherwise.
77 return locked;
105 * an <code>AssertFailedException</code> if this object has been locked. See {@link #lock()}.
110 * @throws AssertFailedException - if the key is null or this object has been locked.
114 Assert.isFalse(locked, "Th
[all...]
/external/mockftpserver/tags/1.0/src/main/java/org/mockftpserver/core/command/
H A DInvocationRecord.java37 * The {@link #lock()} method makes an instance of this class immutable. After an instance is locked,
50 private boolean locked = false; field in class:InvocationRecord
64 * Lock this instance, making it immutable. After an instance is locked,
69 locked = true;
73 * Return true if this object has been locked, false otherwise. See {@link #lock()}.
74 * @return true if this object has been locked, false otherwise.
77 return locked;
105 * an <code>AssertFailedException</code> if this object has been locked. See {@link #lock()}.
110 * @throws AssertFailedException - if the key is null or this object has been locked.
114 Assert.isFalse(locked, "Th
[all...]
/external/mockftpserver/tags/1.1/src/main/java/org/mockftpserver/core/command/
H A DInvocationRecord.java37 * The {@link #lock()} method makes an instance of this class immutable. After an instance is locked,
50 private boolean locked = false; field in class:InvocationRecord
64 * Lock this instance, making it immutable. After an instance is locked,
69 locked = true;
73 * Return true if this object has been locked, false otherwise. See {@link #lock()}.
74 * @return true if this object has been locked, false otherwise.
77 return locked;
105 * an <code>AssertFailedException</code> if this object has been locked. See {@link #lock()}.
110 * @throws AssertFailedException - if the key is null or this object has been locked.
114 Assert.isFalse(locked, "Th
[all...]
/external/mockftpserver/tags/1.2/src/main/java/org/mockftpserver/core/command/
H A DInvocationRecord.java37 * The {@link #lock()} method makes an instance of this class immutable. After an instance is locked,
50 private boolean locked = false; field in class:InvocationRecord
64 * Lock this instance, making it immutable. After an instance is locked,
69 locked = true;
73 * Return true if this object has been locked, false otherwise. See {@link #lock()}.
74 * @return true if this object has been locked, false otherwise.
77 return locked;
105 * an <code>AssertFailedException</code> if this object has been locked. See {@link #lock()}.
110 * @throws AssertFailedException - if the key is null or this object has been locked.
114 Assert.isFalse(locked, "Th
[all...]
/external/mockftpserver/tags/1.2.1/src/main/java/org/mockftpserver/core/command/
H A DInvocationRecord.java37 * The {@link #lock()} method makes an instance of this class immutable. After an instance is locked,
50 private boolean locked = false; field in class:InvocationRecord
64 * Lock this instance, making it immutable. After an instance is locked,
69 locked = true;
73 * Return true if this object has been locked, false otherwise. See {@link #lock()}.
74 * @return true if this object has been locked, false otherwise.
77 return locked;
105 * an <code>AssertFailedException</code> if this object has been locked. See {@link #lock()}.
110 * @throws AssertFailedException - if the key is null or this object has been locked.
114 Assert.isFalse(locked, "Th
[all...]
/external/mockftpserver/tags/1.2.2/src/main/java/org/mockftpserver/core/command/
H A DInvocationRecord.java37 * The {@link #lock()} method makes an instance of this class immutable. After an instance is locked,
50 private boolean locked = false; field in class:InvocationRecord
64 * Lock this instance, making it immutable. After an instance is locked,
69 locked = true;
73 * Return true if this object has been locked, false otherwise. See {@link #lock()}.
74 * @return true if this object has been locked, false otherwise.
77 return locked;
105 * an <code>AssertFailedException</code> if this object has been locked. See {@link #lock()}.
110 * @throws AssertFailedException - if the key is null or this object has been locked.
114 Assert.isFalse(locked, "Th
[all...]
/external/mockftpserver/tags/1.2.3/src/main/java/org/mockftpserver/core/command/
H A DInvocationRecord.java37 * The {@link #lock()} method makes an instance of this class immutable. After an instance is locked,
50 private boolean locked = false; field in class:InvocationRecord
64 * Lock this instance, making it immutable. After an instance is locked,
69 locked = true;
73 * Return true if this object has been locked, false otherwise. See {@link #lock()}.
74 * @return true if this object has been locked, false otherwise.
77 return locked;
105 * an <code>AssertFailedException</code> if this object has been locked. See {@link #lock()}.
110 * @throws AssertFailedException - if the key is null or this object has been locked.
114 Assert.isFalse(locked, "Th
[all...]
/external/mockftpserver/tags/1.2.4/src/main/java/org/mockftpserver/core/command/
H A DInvocationRecord.java37 * The {@link #lock()} method makes an instance of this class immutable. After an instance is locked,
50 private boolean locked = false; field in class:InvocationRecord
64 * Lock this instance, making it immutable. After an instance is locked,
69 locked = true;
73 * Return true if this object has been locked, false otherwise. See {@link #lock()}.
74 * @return true if this object has been locked, false otherwise.
77 return locked;
105 * an <code>AssertFailedException</code> if this object has been locked. See {@link #lock()}.
110 * @throws AssertFailedException - if the key is null or this object has been locked.
114 Assert.isFalse(locked, "Th
[all...]
/external/mockftpserver/tags/2.0/src/main/java/org/mockftpserver/core/command/
H A DInvocationRecord.java37 * The {@link #lock()} method makes an instance of this class immutable. After an instance is locked,
49 private boolean locked = false; field in class:InvocationRecord
64 * Lock this instance, making it immutable. After an instance is locked,
69 locked = true;
73 * Return true if this object has been locked, false otherwise. See {@link #lock()}.
75 * @return true if this object has been locked, false otherwise.
78 return locked;
106 * an <code>AssertFailedException</code> if this object has been locked. See {@link #lock()}.
110 * @throws AssertFailedException - if the key is null or this object has been locked.
114 Assert.isFalse(locked, "Th
[all...]
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/main/java/org/mockftpserver/core/command/
H A DInvocationRecord.java37 * The {@link #lock()} method makes an instance of this class immutable. After an instance is locked,
49 private boolean locked = false; field in class:InvocationRecord
64 * Lock this instance, making it immutable. After an instance is locked,
69 locked = true;
73 * Return true if this object has been locked, false otherwise. See {@link #lock()}.
75 * @return true if this object has been locked, false otherwise.
78 return locked;
106 * an <code>AssertFailedException</code> if this object has been locked. See {@link #lock()}.
110 * @throws AssertFailedException - if the key is null or this object has been locked.
114 Assert.isFalse(locked, "Th
[all...]
/external/mockftpserver/tags/2.0-rc1/src/main/java/org/mockftpserver/core/command/
H A DInvocationRecord.java37 * The {@link #lock()} method makes an instance of this class immutable. After an instance is locked,
50 private boolean locked = false; field in class:InvocationRecord
64 * Lock this instance, making it immutable. After an instance is locked,
69 locked = true;
73 * Return true if this object has been locked, false otherwise. See {@link #lock()}.
74 * @return true if this object has been locked, false otherwise.
77 return locked;
105 * an <code>AssertFailedException</code> if this object has been locked. See {@link #lock()}.
110 * @throws AssertFailedException - if the key is null or this object has been locked.
114 Assert.isFalse(locked, "Th
[all...]
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/main/java/org/mockftpserver/core/command/
H A DInvocationRecord.java37 * The {@link #lock()} method makes an instance of this class immutable. After an instance is locked,
49 private boolean locked = false; field in class:InvocationRecord
64 * Lock this instance, making it immutable. After an instance is locked,
69 locked = true;
73 * Return true if this object has been locked, false otherwise. See {@link #lock()}.
75 * @return true if this object has been locked, false otherwise.
78 return locked;
106 * an <code>AssertFailedException</code> if this object has been locked. See {@link #lock()}.
110 * @throws AssertFailedException - if the key is null or this object has been locked.
114 Assert.isFalse(locked, "Th
[all...]
/external/mockftpserver/tags/2.0.1/src/main/java/org/mockftpserver/core/command/
H A DInvocationRecord.java37 * The {@link #lock()} method makes an instance of this class immutable. After an instance is locked,
49 private boolean locked = false; field in class:InvocationRecord
64 * Lock this instance, making it immutable. After an instance is locked,
69 locked = true;
73 * Return true if this object has been locked, false otherwise. See {@link #lock()}.
75 * @return true if this object has been locked, false otherwise.
78 return locked;
106 * an <code>AssertFailedException</code> if this object has been locked. See {@link #lock()}.
110 * @throws AssertFailedException - if the key is null or this object has been locked.
114 Assert.isFalse(locked, "Th
[all...]
/external/mockftpserver/tags/2.0.2/src/main/java/org/mockftpserver/core/command/
H A DInvocationRecord.java37 * The {@link #lock()} method makes an instance of this class immutable. After an instance is locked,
49 private boolean locked = false; field in class:InvocationRecord
64 * Lock this instance, making it immutable. After an instance is locked,
69 locked = true;
73 * Return true if this object has been locked, false otherwise. See {@link #lock()}.
75 * @return true if this object has been locked, false otherwise.
78 return locked;
106 * an <code>AssertFailedException</code> if this object has been locked. See {@link #lock()}.
110 * @throws AssertFailedException - if the key is null or this object has been locked.
114 Assert.isFalse(locked, "Th
[all...]
/external/mockftpserver/tags/2.1/src/main/java/org/mockftpserver/core/command/
H A DInvocationRecord.java37 * The {@link #lock()} method makes an instance of this class immutable. After an instance is locked,
49 private boolean locked = false; field in class:InvocationRecord
64 * Lock this instance, making it immutable. After an instance is locked,
69 locked = true;
73 * Return true if this object has been locked, false otherwise. See {@link #lock()}.
75 * @return true if this object has been locked, false otherwise.
78 return locked;
106 * an <code>AssertFailedException</code> if this object has been locked. See {@link #lock()}.
110 * @throws AssertFailedException - if the key is null or this object has been locked.
114 Assert.isFalse(locked, "Th
[all...]

Completed in 2476 milliseconds

12345678