/external/ceres-solver/internal/ceres/ |
H A D | mutex.h | 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() 158 inline void Lock(); // Block if needed until free then acquire exclusively 159 inline void Unlock(); // Release a lock acquired via Lock() 161 inline bool TryLock(); // If free, Lock() and return true, else return false 164 // be implemented as synonyms to Lock() and Unlock(). So you can use 169 inline void WriterLock() { Lock(); } // Acquire an exclusive lock 206 void Mutex::Lock() { assert(--mutex_ == -1); } function in class:ceres::internal::Mutex 209 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } 218 void Mutex::Lock() { i function in class:ceres::internal::Mutex 238 void Mutex::Lock() { CERES_SAFE_PTHREAD(pthread_rwlock_wrlock); } function in class:ceres::internal::Mutex 260 void Mutex::Lock() { CERES_SAFE_PTHREAD(pthread_mutex_lock); } function in class:ceres::internal::Mutex [all...] |
/external/chromium_org/base/files/ |
H A D | file_posix.cc | 81 lock.l_len = 0; // Lock entire file. 445 File::Error File::Lock() { function in class:base::File
|
H A D | file_win.cc | 296 File::Error base::File::Lock() { function in class:base::base::File
|
/external/chromium_org/base/memory/ |
H A D | discardable_memory_ashmem.cc | 31 return Lock() != DISCARDABLE_MEMORY_LOCK_STATUS_FAILED; 34 DiscardableMemoryLockStatus DiscardableMemoryAshmem::Lock() { function in class:base::internal::DiscardableMemoryAshmem 60 return ashmem_chunk_->Lock();
|
H A D | discardable_memory_ashmem_allocator.cc | 77 // Lock() and Unlock(), data could get lost if they are not written to the 428 bool DiscardableAshmemChunk::Lock() { function in class:base::internal::DiscardableAshmemChunk
|
H A D | discardable_memory_emulated.cc | 62 return Lock() != DISCARDABLE_MEMORY_LOCK_STATUS_FAILED; 65 DiscardableMemoryLockStatus DiscardableMemoryEmulated::Lock() { function in class:base::internal::DiscardableMemoryEmulated
|
H A D | discardable_memory_malloc.cc | 19 return Lock() != DISCARDABLE_MEMORY_LOCK_STATUS_FAILED; 22 DiscardableMemoryLockStatus DiscardableMemoryMalloc::Lock() { function in class:base::internal::DiscardableMemoryMalloc
|
H A D | discardable_memory_manager_unittest.cc | 99 LockStatus Lock(TestAllocationImpl* allocation) { function in class:base::__anon2334::DiscardableMemoryManagerTestBase 112 return Lock(allocation); 144 EXPECT_EQ(LOCK_STATUS_PURGED, Lock(&allocation)); 157 EXPECT_EQ(LOCK_STATUS_FAILED, Lock(&allocation)); 173 EXPECT_EQ(LOCK_STATUS_SUCCESS, Lock(&allocation)); 193 EXPECT_EQ(LOCK_STATUS_PURGED, Lock(&allocation)); 215 EXPECT_EQ(LOCK_STATUS_PURGED, Lock(&allocation)); 232 EXPECT_EQ(LOCK_STATUS_FAILED, Lock(&massive_allocation)); 236 EXPECT_EQ(LOCK_STATUS_PURGED, Lock(&massive_allocation)); 273 EXPECT_NE(LOCK_STATUS_FAILED, Lock( [all...] |
/external/chromium_org/base/synchronization/ |
H A D | lock.cc | 5 // This file is used for debugging assertion support. The Lock class 16 Lock::Lock() : lock_() { function in class:base::Lock 19 Lock::~Lock() { 23 void Lock::AssertAcquired() const { 27 void Lock::CheckHeldAndUnmark() { 32 void Lock::CheckUnheldAndMark() {
|
H A D | lock.h | 17 class BASE_EXPORT Lock { class in namespace:base 21 Lock() : lock_() {} function in class:base::Lock 22 ~Lock() {} 23 void Acquire() { lock_.Lock(); } 35 Lock(); 36 ~Lock(); 42 lock_.Lock(); 90 DISALLOW_COPY_AND_ASSIGN(Lock); 93 // A helper class that acquires the given Lock while the AutoLock is in scope. 98 explicit AutoLock(Lock [all...] |
H A D | lock_impl_posix.cc | 44 void LockImpl::Lock() { function in class:base::internal::LockImpl
|
H A D | lock_impl_win.cc | 27 void LockImpl::Lock() { function in class:base::internal::LockImpl
|
/external/chromium_org/chrome/browser/importer/ |
H A D | firefox_profile_lock_posix.cc | 63 void FirefoxProfileLock::Lock() { function in class:FirefoxProfileLock
|
H A D | firefox_profile_lock_win.cc | 58 void FirefoxProfileLock::Lock() { function in class:FirefoxProfileLock
|
/external/chromium_org/chrome/browser/signin/ |
H A D | screenlock_bridge.cc | 139 void ScreenlockBridge::Lock(Profile* profile) { function in class:ScreenlockBridge
|
/external/chromium_org/content/child/npapi/ |
H A D | webplugin_ime_win.cc | 24 base::LazyInstance<base::Lock>::Leaky 179 void WebPluginIMEWin::Lock() { function in class:content::WebPluginIMEWin
|
/external/chromium_org/mojo/public/cpp/utility/lib/ |
H A D | mutex.cc | 31 void Mutex::Lock() { function in class:mojo::Mutex
|
/external/chromium_org/mojo/public/cpp/utility/ |
H A D | mutex.h | 32 void Lock() { pthread_mutex_lock(&mutex_); } function in class:mojo::Mutex 41 void Lock(); 56 explicit MutexLock(Mutex* mutex) : mutex_(mutex) { mutex_->Lock(); }
|
/external/chromium_org/native_client_sdk/src/libraries/sdk_util/ |
H A D | simple_lock.h | 29 void Lock() const { pthread_mutex_lock(&lock_); } function in class:sdk_util::SimpleLock
|
/external/chromium_org/net/disk_cache/blockfile/ |
H A D | file_lock.cc | 33 void FileLock::Lock() { function in class:disk_cache::FileLock
|
/external/chromium_org/ppapi/proxy/ |
H A D | proxy_completion_callback_factory.h | 57 class Lock { class in class:ppapi::proxy::ProxyNonThreadSafeThreadTraits 59 Lock() {} function in class:ppapi::proxy::ProxyNonThreadSafeThreadTraits::Lock 60 ~Lock() {} 69 explicit AutoLock(Lock&) {}
|
/external/chromium_org/ppapi/utility/ |
H A D | completion_callback_factory_thread_traits.h | 64 Lock lock_; 68 typedef pp::Lock Lock; typedef in class:pp::ThreadSafeThreadTraits 124 class Lock { class in class:pp::NonThreadSafeThreadTraits 126 Lock() { function in class:pp::NonThreadSafeThreadTraits::Lock 133 ~Lock() { 164 explicit AutoLock(Lock& lock) : lock_(lock) { 172 Lock& lock_;
|
/external/chromium_org/ppapi/utility/threading/ |
H A D | lock.cc | 11 Lock::Lock() { function in class:pp::Lock 17 Lock::~Lock() { 21 void Lock::Acquire() { 25 void Lock::Release() { 31 Lock::Lock() { 35 Lock::~Lock() { [all...] |
H A D | lock.h | 17 class Lock { class in namespace:pp 20 Lock(); 23 ~Lock(); 46 Lock(const Lock&); 47 Lock& operator=(const Lock&); 61 /// pp::Lock lock_; 66 explicit AutoLock(Lock& lock) : lock_(lock) { 75 Lock [all...] |
/external/chromium_org/remoting/base/ |
H A D | compound_buffer.cc | 136 void CompoundBuffer::Lock() { function in class:remoting::CompoundBuffer
|