Home
last modified time | relevance | path

Searched refs:Lock (Results 1 – 25 of 375) sorted by relevance

12345678910>>...15

/external/clang/test/PCH/
Dthread-safety-attrs.cpp35 void Lock() __attribute__((exclusive_lock_function));
118 sls_mw.mu.Lock(); in sls_fun_0()
124 sls_mu.Lock(); in sls_fun_2()
130 sls_mu.Lock(); in sls_fun_3()
136 sls_mu2.Lock(); in sls_fun_4()
142 sls_mu.Lock(); in sls_fun_5()
148 sls_mu.Lock(); in sls_fun_6()
154 sls_mu.Lock(); in sls_fun_7()
155 sls_mu2.Lock(); in sls_fun_7()
161 sls_mu.Lock(); in sls_fun_8()
[all …]
/external/sfntly/cpp/src/sfntly/port/
Dlock.cc23 Lock::Lock() { in Lock() function in sfntly::Lock
29 Lock::~Lock() { in ~Lock()
33 bool Lock::Try() { in Try()
40 void Lock::Acquire() { in Acquire()
44 void Lock::Unlock() { in Unlock()
50 Lock::Lock() {
54 Lock::~Lock() {
58 bool Lock::Try() {
62 void Lock::Acquire() {
66 void Lock::Unlock() {
Dlock.h37 class Lock {
39 Lock();
40 ~Lock();
55 NO_COPY_AND_ASSIGN(Lock);
61 explicit AutoLock(Lock& lock) : lock_(lock) { in AutoLock()
70 Lock& lock_;
/external/clang/test/SemaCXX/
Dwarn-thread-safety-analysis.cpp32 void Lock() __attribute__((exclusive_lock_function));
159 sls_mw.mu.Lock(); in sls_fun_0()
165 sls_mu.Lock(); in sls_fun_2()
171 sls_mu.Lock(); in sls_fun_3()
177 sls_mu2.Lock(); in sls_fun_4()
183 sls_mu.Lock(); in sls_fun_5()
189 sls_mu.Lock(); in sls_fun_6()
195 sls_mu.Lock(); in sls_fun_7()
196 sls_mu2.Lock(); in sls_fun_7()
202 sls_mu.Lock(); in sls_fun_8()
[all …]
/external/libchrome/base/synchronization/
Dlock.h20 class BASE_EXPORT Lock {
24 Lock() : lock_() {} in Lock() function
25 ~Lock() {} in ~Lock()
26 void Acquire() { lock_.Lock(); } in Acquire()
38 Lock();
39 ~Lock();
45 lock_.Lock();
93 DISALLOW_COPY_AND_ASSIGN(Lock);
101 explicit AutoLock(Lock& lock) : lock_(lock) { in AutoLock()
105 AutoLock(Lock& lock, const AlreadyAcquired&) : lock_(lock) { in AutoLock()
[all …]
Dlock.cc15 Lock::Lock() : lock_() { in Lock() function in base::Lock
18 Lock::~Lock() { in ~Lock()
22 void Lock::AssertAcquired() const { in AssertAcquired()
26 void Lock::CheckHeldAndUnmark() { in CheckHeldAndUnmark()
31 void Lock::CheckUnheldAndMark() { in CheckUnheldAndMark()
Dlock_unittest.cc20 explicit BasicLockTestThread(Lock* lock) : lock_(lock), acquired_(0) {} in BasicLockTestThread()
46 Lock* lock_;
53 Lock lock; in TEST()
95 explicit TryLockTestThread(Lock* lock) : lock_(lock), got_lock_(false) {} in TryLockTestThread()
106 Lock* lock_;
113 Lock lock; in TEST()
153 MutexLockTestThread(Lock* lock, int* value) : lock_(lock), value_(value) {} in MutexLockTestThread()
156 static void DoStuff(Lock* lock, int* value) { in DoStuff()
169 Lock* lock_;
176 Lock lock; in TEST()
[all …]
/external/parameter-framework/asio-1.10.6/include/asio/detail/
Dposix_event.hpp42 template <typename Lock>
43 void signal(Lock& lock) in signal()
49 template <typename Lock>
50 void signal_all(Lock& lock) in signal_all()
59 template <typename Lock>
60 void unlock_and_signal_one(Lock& lock) in unlock_and_signal_one()
71 template <typename Lock>
72 bool maybe_unlock_and_signal_one(Lock& lock) in maybe_unlock_and_signal_one()
86 template <typename Lock>
87 void clear(Lock& lock) in clear()
[all …]
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
DStripedBenchmark.java35 import java.util.concurrent.locks.Lock;
43 private static final Supplier<Lock> LOCK_SUPPLIER = new Supplier<Lock>() {
44 @Override public Lock get() {
54 @Override Striped<Lock> get(int stripes) { in get()
59 @Override Striped<Lock> get(int stripes) { in get()
60 return new Striped.SmallLazyStriped<Lock>(stripes, LOCK_SUPPLIER); in get()
64 @Override Striped<Lock> get(int stripes) { in get()
65 return new Striped.LargeLazyStriped<Lock>(stripes, LOCK_SUPPLIER); in get()
69 abstract Striped<Lock> get(int stripes); in get()
72 private Striped<Lock> striped;
[all …]
DCycleDetectingLockFactoryBenchmark.java23 import java.util.concurrent.locks.Lock;
36 private Lock[] plainLocks;
37 private Lock[] detectingLocks;
43 this.plainLocks = new Lock[lockNestingDepth]; in setUp()
47 this.detectingLocks = new Lock[lockNestingDepth]; in setUp()
61 private void lockAndUnlock(Lock lock, int reps) { in lockAndUnlock()
76 private void lockAndUnlockNested(Lock[] locks, int reps) { in lockAndUnlockNested()
/external/compiler-rt/lib/builtins/
Datomic.c58 typedef struct _usem Lock; typedef
59 __inline static void unlock(Lock *l) { in unlock()
65 __inline static void lock(Lock *l) { in lock()
74 static Lock locks[SPINLOCK_COUNT] = { [0 ... SPINLOCK_COUNT-1] = {0,1,0} };
78 typedef OSSpinLock Lock; typedef
79 __inline static void unlock(Lock *l) { in unlock()
84 __inline static void lock(Lock *l) { in lock()
87 static Lock locks[SPINLOCK_COUNT]; // initialized to OS_SPINLOCK_INIT which is 0
90 typedef _Atomic(uintptr_t) Lock; typedef
92 __inline static void unlock(Lock *l) { in unlock()
[all …]
/external/skia/include/private/
DSkOnce.h44 template <typename Lock>
45 inline void SkOnce(bool* done, Lock* lock, void (*f)());
47 template <typename Lock, typename Arg>
48 inline void SkOnce(bool* done, Lock* lock, void (*f)(Arg), Arg arg);
72 template <typename Lock, typename Arg>
73 static void sk_once_slow(bool* done, Lock* lock, void (*f)(Arg), Arg arg) { in sk_once_slow()
92 template <typename Lock, typename Arg>
93 inline void SkOnce(bool* done, Lock* lock, void (*f)(Arg), Arg arg) { in SkOnce()
134 template <typename Lock>
135 inline void SkOnce(bool* done, Lock* lock, void (*func)()) { in SkOnce()
DSkMutex.h69 template <typename Lock>
72 explicit SkAutoTAcquire(Lock& mutex) : fMutex(&mutex) { in SkAutoTAcquire()
77 explicit SkAutoTAcquire(Lock* mutex) : fMutex(mutex) { in SkAutoTAcquire()
105 Lock* fMutex;
110 template <typename Lock>
113 SkAutoTExclusive(Lock& lock) : fLock(lock) { lock.acquire(); } in SkAutoTExclusive()
116 Lock &fLock;
/external/v8/test/unittests/base/platform/
Dmutex-unittest.cc51 mutex1.Lock(); in TEST()
52 mutex2.Lock(); in TEST()
53 mutex3.Lock(); in TEST()
58 mutex1.Lock(); in TEST()
59 mutex2.Lock(); in TEST()
60 mutex3.Lock(); in TEST()
71 recursive_mutex1.Lock(); in TEST()
72 recursive_mutex2.Lock(); in TEST()
80 recursive_mutex1.Lock(); in TEST()
82 recursive_mutex2.Lock(); in TEST()
/external/compiler-rt/lib/tsan/tests/rtl/
Dtsan_mutex.cc27 t.Lock(m); in TEST()
33 t.Lock(m); in TEST()
45 t.Lock(m); in TEST()
51 t.Lock(m); in TEST()
63 t.Lock(m); in TEST()
69 t.Lock(m); in TEST()
79 t.Lock(m); in TEST()
102 t1.Lock(m); in TEST()
105 t2.Lock(m); in TEST()
118 t1.Lock(m); in TEST()
[all …]
/external/valgrind/drd/tests/
Dtsan_unittest.cpp151 printf_mu.Lock();\
383 MU.Lock(); in Waker()
394 MU.Lock(); in Waiter()
431 MU.Lock(); in Waker()
511 MU.Lock(); in Waker()
523 MU.Lock(); in Waiter()
563 MU.Lock(); in Waker()
575 MU.Lock(); in Waiter()
614 MU.Lock(); in Signaller()
753 MU.Lock(); in Worker()
[all …]
/external/regex-re2/util/
Dmutex.h58 inline void Lock(); // Block if needed until free then acquire exclusively
67 inline void WriterLock() { Lock(); } // Acquire an exclusive lock in WriterLock()
97 void Mutex::Lock() { assert(--mutex_ == -1); } in Lock() function
99 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } in TryLock()
110 void Mutex::Lock() { SAFE_PTHREAD(pthread_rwlock_wrlock(&mutex_)); } in Lock() function
125 void Mutex::Lock() { SAFE_PTHREAD(pthread_mutex_lock(&mutex_)); } in Lock() function
128 void Mutex::ReaderLock() { Lock(); } // we don't have read-write locks in ReaderLock()
136 void Mutex::Lock() { EnterCriticalSection(&mutex_); } in Lock() function
139 void Mutex::ReaderLock() { Lock(); } // we don't have read-write locks in ReaderLock()
151 explicit MutexLock(Mutex *mu) : mu_(mu) { mu_->Lock(); } in MutexLock()
[all …]
/external/sfntly/cpp/src/test/
Dlock_test.cc29 BasicLockTestThread(Lock* lock) : lock_(lock), acquired_(0) {} in BasicLockTestThread()
55 Lock* lock_;
62 Lock lock; in BasicLockTest()
106 TryLockTestThread(Lock* lock) : lock_(lock), got_lock_(false) {} in TryLockTestThread()
117 Lock* lock_;
124 Lock lock; in TryLockTest()
165 MutexLockTestThread(Lock* lock, int* value) : lock_(lock), value_(value) {} in MutexLockTestThread()
168 static void DoStuff(Lock* lock, int* value) { in DoStuff()
183 Lock* lock_;
190 Lock lock; in MutexTwoThreads()
[all …]
/external/opencv3/3rdparty/openexr/IlmThread/
DIlmThreadPool.cpp137 Lock taskLock (_data->taskMutex); in run()
222 Lock lock (threadMutex); in ~Data()
261 Lock lock1 (taskMutex); in finish()
262 Lock lock2 (stopMutex); in finish()
274 Lock lock (stopMutex); in stopped()
282 Lock lock (stopMutex); in stop()
343 Lock lock (_data->threadMutex); in numThreads()
359 Lock lock (_data->threadMutex); in setNumThreads()
402 Lock lock (_data->threadMutex); in addTask()
416 Lock taskLock (_data->taskMutex); in addTask()
DIlmThreadMutex.h83 class Lock; variable
107 friend class Lock; variable
111 class Lock
115 Lock (const Mutex& m, bool autoLock = true):
126 ~Lock () in ~Lock()
/external/ceres-solver/internal/ceres/
Dmutex.h158 inline void Lock(); // Block if needed until free then acquire exclusively
169 inline void WriterLock() { Lock(); } // Acquire an exclusive lock in WriterLock()
206 void Mutex::Lock() { assert(--mutex_ == -1); } in Lock() function
209 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } in TryLock()
218 void Mutex::Lock() { if (is_safe_) EnterCriticalSection(&mutex_); } in Lock() function
224 void Mutex::ReaderLock() { Lock(); } // we don't have read-write locks in ReaderLock()
238 void Mutex::Lock() { CERES_SAFE_PTHREAD(pthread_rwlock_wrlock); } in Lock() function
260 void Mutex::Lock() { CERES_SAFE_PTHREAD(pthread_mutex_lock); } in Lock() function
266 void Mutex::ReaderLock() { Lock(); } in ReaderLock()
286 explicit CeresMutexLock(Mutex *mu) : mu_(mu) { mu_->Lock(); } in CeresMutexLock()
/external/opencv3/3rdparty/openexr/IlmImf/
DImfAttribute.cpp53 using IlmThread::Lock;
90 Lock lock (criticalSection); in typeMap()
108 Lock lock (tMap.mutex); in knownType()
119 Lock lock (tMap.mutex); in registerAttributeType()
134 Lock lock (tMap.mutex); in unRegisterAttributeType()
144 Lock lock (tMap.mutex); in newAttribute()
/external/llvm/lib/IR/
DPassRegistry.cpp42 sys::SmartScopedReader<true> Guard(Lock); in getPassInfo()
48 sys::SmartScopedReader<true> Guard(Lock); in getPassInfo()
58 sys::SmartScopedWriter<true> Guard(Lock); in registerPass()
74 sys::SmartScopedReader<true> Guard(Lock); in enumerateWith()
98 sys::SmartScopedWriter<true> Guard(Lock); in registerAnalysisGroup()
121 sys::SmartScopedWriter<true> Guard(Lock); in addRegistrationListener()
126 sys::SmartScopedWriter<true> Guard(Lock); in removeRegistrationListener()
/external/libchrome/base/threading/
Dworker_pool_posix_unittest.cc26 Lock* lock() { return &pool_->lock_; } in lock()
55 void IncrementingTask(Lock* counter_lock, in IncrementingTask()
57 Lock* unique_threads_lock, in IncrementingTask()
70 Lock* counter_lock;
72 Lock* unique_threads_lock;
74 Lock* num_waiting_to_start_lock;
141 Lock counter_lock_;
143 Lock unique_threads_lock_;
145 Lock num_waiting_to_start_lock_;
/external/webrtc/webrtc/sound/
Dpulseaudiosoundsystem.cc162 Lock(); in LatencyUsecs()
199 void Lock() { in Lock() function in rtc::PulseAudioStream
200 pulse()->Lock(); in Lock()
249 Lock(); in GetVolume()
298 Lock(); in SetVolume()
367 Lock(); in Close()
389 void Lock() { in Lock() function in rtc::PulseAudioInputStream
390 stream_.Lock(); in Lock()
441 Lock(); in OnStart()
455 Lock(); in OnHaveWork()
[all …]

12345678910>>...15