OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:trylock
(Results
1 - 25
of
402
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/external/valgrind/main/drd/tests/
trylock.vgtest
2
prog:
trylock
trylock.stderr.exp
11
by 0x........: main (
trylock
.c:?)
14
by 0x........: main (
trylock
.c:?)
/external/chromium_org/v8/src/base/platform/
mutex-unittest.cc
73
EXPECT_TRUE(recursive_mutex1.
TryLock
());
74
EXPECT_TRUE(recursive_mutex2.
TryLock
());
81
EXPECT_TRUE(recursive_mutex1.
TryLock
());
83
EXPECT_TRUE(recursive_mutex2.
TryLock
());
mutex.h
28
// either |Lock()| or |
TryLock
()| until it calls |Unlock()|.
30
// |Lock()|) or receive a |false| return value (for |
TryLock
()|) if they
33
// |
TryLock
()|. The behavior of a program is undefined if a mutex is destroyed
53
bool
TryLock
() WARN_UNUSED_RESULT;
117
// when it successfully calls either |Lock()| or |
TryLock
()|. During this
118
// period, the thread may make additional calls to |Lock()| or |
TryLock
()|.
122
// calls to |Lock()|) or receive a |false| return value (for |
TryLock
()|) if
126
// probably abort the process and calls to |
TryLock
()| return false.
152
bool
TryLock
() WARN_UNUSED_RESULT;
mutex.cc
139
bool Mutex::
TryLock
() {
180
bool RecursiveMutex::
TryLock
() {
/external/chromium_org/third_party/webrtc/base/
filelock_unittest.cc
33
scoped_ptr<FileLock> lock(FileLock::
TryLock
(temp_file_.pathname()));
35
// this test, therefore the
TryLock
(...) call should fail.
60
scoped_ptr<FileLock> lock(FileLock::
TryLock
(temp_file_.pathname()));
68
scoped_ptr<FileLock> lock(FileLock::
TryLock
(temp_file_.pathname()));
73
scoped_ptr<FileLock> lock1(FileLock::
TryLock
(temp_file_.pathname()));
76
scoped_ptr<FileLock> lock2(FileLock::
TryLock
(temp_file_.pathname()));
81
scoped_ptr<FileLock> lock(FileLock::
TryLock
(temp_file_.pathname()));
filelock.cc
42
FileLock* FileLock::
TryLock
(const std::string& path) {
49
ok = stream->Open(path, "a", NULL) && stream->
TryLock
();
/hardware/broadcom/wlan/bcmdhd/wifi_hal/
sync.h
18
int
tryLock
() {
/external/chromium_org/mojo/public/cpp/utility/
mutex.h
34
bool
TryLock
() { return pthread_mutex_trylock(&mutex_) == 0; }
43
bool
TryLock
();
/external/chromium_org/mojo/public/cpp/utility/tests/
mutex_unittest.cc
26
EXPECT_TRUE(mutex.
TryLock
());
35
EXPECT_TRUE(mutex.
TryLock
());
71
if (mutex_->
TryLock
()) {
174
try_lock_succeeded_ = mutex_->
TryLock
();
188
TEST(MutexTest,
TryLock
) {
191
// |
TryLock
()| should succeed -- we don't have the lock.
200
ASSERT_TRUE(mutex.
TryLock
());
250
mutex.
TryLock
();
/external/libnfc-nci/halimpl/bcm2079x/adaptation/
Mutex.h
82
** Function:
tryLock
89
bool
tryLock
();
Mutex.cpp
109
** Function:
tryLock
116
bool Mutex::
tryLock
()
121
ALOGE ("Mutex::
tryLock
: error=0x%X", res);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
ReadOnlyBinaryDictionary.java
57
if (mLock.readLock().
tryLock
()) {
70
if (mLock.readLock().
tryLock
()) {
82
if (mLock.readLock().
tryLock
()) {
94
if (mLock.readLock().
tryLock
()) {
106
if (mLock.readLock().
tryLock
()) {
/external/chromium_org/chrome/common/
multi_process_lock_unittest.cc
102
EXPECT_FALSE(test_lock->
TryLock
());
108
EXPECT_TRUE(test_lock->
TryLock
());
117
EXPECT_TRUE(test_lock->
TryLock
());
121
EXPECT_TRUE(test_lock->
TryLock
());
137
EXPECT_TRUE(test_lock->
TryLock
());
158
EXPECT_FALSE(test_lock->
TryLock
());
169
EXPECT_TRUE(test_lock->
TryLock
());
multi_process_lock.h
27
virtual bool
TryLock
() = 0;
/external/compiler-rt/lib/tsan/tests/rtl/
tsan_mutex.cc
30
CHECK(t.
TryLock
(m));
34
CHECK(!t.
TryLock
(m));
48
CHECK(t.
TryLock
(m));
52
CHECK(!t.
TryLock
(m));
66
CHECK(t.
TryLock
(m));
70
CHECK(!t.
TryLock
(m));
84
CHECK(!t.
TryLock
(m));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
FileChannelLockingTest.java
159
readOnlyChannel.
tryLock
();
169
readOnlyChannel.
tryLock
(0, 99, false);
177
readOnlyChannel.
tryLock
(-99, 0, true);
184
FileLock tmpLock = readOnlyChannel.
tryLock
(0, 10, true);
189
FileLock lock = readOnlyChannel.
tryLock
(10, 788, true);
194
readOnlyChannel.
tryLock
(1, 23, true);
201
FileLock adjacentLock = readOnlyChannel.
tryLock
(1, 3, true);
/packages/apps/Nfc/nci/jni/
Mutex.cpp
106
** Function:
tryLock
113
bool Mutex::
tryLock
()
118
ALOGE ("Mutex::
tryLock
: error=0x%X", res);
Mutex.h
78
** Function:
tryLock
85
bool
tryLock
();
/hardware/samsung_slsi/exynos5/libexynosutils/
ExynosMutex.h
70
//!
trylock
Mutex
71
bool
tryLock
(void);
ExynosMutex.cpp
157
bool ExynosMutex::
tryLock
(void)
167
ALOGD("%s::%s'
trylock
() start", __func__, m_name);
170
ret = ((Mutex *)m_mutex)->
tryLock
();
173
ALOGD("%s::%s'
trylock
() end", __func__, m_name);
247
return ((ExynosMutex *)handle)->
tryLock
();
/external/chromium_org/third_party/WebKit/Source/wtf/
ThreadingPrimitives.h
102
bool
tryLock
();
108
bool
tryLock
();
116
MutexTryLocker(Mutex& mutex) : m_mutex(mutex), m_locked(mutex.
tryLock
()) { }
/external/chromium_org/third_party/re2/util/
mutex.h
43
// lines, and change
TryLock
() to assert(0) or something.
64
inline bool
TryLock
(); // If free, Lock() and return true, else return false
103
bool Mutex::
TryLock
() { if (mutex_) return false; Lock(); return true; }
116
bool Mutex::
TryLock
() { return pthread_rwlock_trywrlock(&mutex_) == 0; }
131
bool Mutex::
TryLock
() { return pthread_mutex_trylock(&mutex_) == 0; }
142
bool Mutex::
TryLock
() { return TryEnterCriticalSection(&mutex_) != 0; }
/external/lldb/source/API/
SBFrame.cpp
123
if (stop_locker.
TryLock
(&process->GetRunLock()))
165
if (stop_locker.
TryLock
(&process->GetRunLock()))
207
if (stop_locker.
TryLock
(&process->GetRunLock()))
247
if (stop_locker.
TryLock
(&process->GetRunLock()))
287
if (stop_locker.
TryLock
(&process->GetRunLock()))
326
if (stop_locker.
TryLock
(&process->GetRunLock()))
365
if (stop_locker.
TryLock
(&process->GetRunLock()))
404
if (stop_locker.
TryLock
(&process->GetRunLock()))
460
if (stop_locker.
TryLock
(&process->GetRunLock()))
500
if (stop_locker.
TryLock
(&process->GetRunLock())
[
all
...]
/external/regex-re2/util/
mutex.h
39
// lines, and change
TryLock
() to assert(0) or something.
60
inline bool
TryLock
(); // If free, Lock() and return true, else return false
99
bool Mutex::
TryLock
() { if (mutex_) return false; Lock(); return true; }
112
bool Mutex::
TryLock
() { return pthread_rwlock_trywrlock(&mutex_) == 0; }
127
bool Mutex::
TryLock
() { return pthread_mutex_trylock(&mutex_) == 0; }
138
bool Mutex::
TryLock
() { return TryEnterCriticalSection(&mutex_) != 0; }
Completed in 1570 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>