/prebuilt/ndk/android-ndk-r6/platforms/android-3/arch-x86/usr/include/linux/ |
seqlock.h | 20 spinlock_t lock; member in struct:__anon25019 34 #define write_seqlock_irqsave(lock, flags) do { local_irq_save(flags); write_seqlock(lock); } while (0) 35 #define write_seqlock_irq(lock) do { local_irq_disable(); write_seqlock(lock); } while (0) 36 #define write_seqlock_bh(lock) do { local_bh_disable(); write_seqlock(lock); } while (0) 37 #define write_sequnlock_irqrestore(lock, flags) do { write_sequnlock(lock); local_irq_restore(flags); } while(0) 38 #define write_sequnlock_irq(lock) do { write_sequnlock(lock); local_irq_enable(); } while(0 [all...] |
/dalvik/tests/088-monitor-verification/ |
info.txt | 2 lock checks in the bytecode verifier.
|
/ndk/tests/build/pthread-rwlock-initializer/jni/ |
test_pthread_rwlock_initializer.c | 13 pthread_rwlock_t lock; local 14 pthread_rwlock_init(&lock, NULL); 15 pthread_rwlock_rdlock(&lock); 16 pthread_rwlock_unlock(&lock); 17 pthread_rwlock_destroy(&lock);
|
/external/qemu/android/utils/ |
filelock.c | 55 ** lock - a lock file (file + '.lock') 60 ** attemp to link 'lock' to 'temp' 61 ** if the link succeeds, we obtain the lock 65 ** unlink 'lock' 68 ** on Windows, 'lock' is a directory name. locking is equivalent to 76 const char* lock; member in struct:FileLock 86 #define LOCK_NAME ".lock" 95 filelock_lock( FileLock* lock ) 366 FileLock* lock; local 385 FileLock* lock = malloc(total_len); local [all...] |
/external/clang/test/CodeGen/ |
2003-11-01-C99-CompoundLiteral.c | 4 typedef struct wait_queue_head_t { spinlock_t lock; } wait_queue_head_t; member in struct:wait_queue_head_t 6 struct wait_queue_head_t work = { lock: (spinlock_t) { 0 }, };
|
2003-11-04-EmptyStruct.c | 4 struct fs_struct { rwlock_t lock; int umask; }; member in struct:fs_struct 5 void __copy_fs_struct(struct fs_struct *fs) { fs->lock = (rwlock_t) { }; }
|
/external/kernel-headers/original/asm-arm/ |
spinlock_types.h | 9 volatile unsigned int lock; member in struct:__anon7017 15 volatile unsigned int lock; member in struct:__anon7018
|
/external/valgrind/main/memcheck/tests/ |
file_locking.stderr.exp | 1 parent: about to lock file for writing. 3 child: about to lock file for writing.
|
/external/valgrind/unittest/ |
helgrind.supp | 3 spin lock: pthread_spin_init 8 spin lock: pthread_spin_init
|
/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_impl.h | 23 // This class implements the underlying platform-specific spin-lock mechanism 24 // used for the Lock class. Most users should not use LockImpl directly, but 25 // should instead use Lock. 37 // If the lock is not held, take it and return true. If the lock is already 41 // Take the lock, blocking until it is available if necessary. 42 void Lock(); 44 // Release the lock. This must only be called by the lock's holder: after 45 // a successful call to Try, or a call to Lock [all...] |
lock_unittest.cc | 7 #include "base/synchronization/lock.h" 17 BasicLockTestThread(Lock* lock) : lock_(lock), acquired_(0) {} 43 Lock* lock_; 50 Lock lock; local 51 BasicLockTestThread thread(&lock); 58 lock.Acquire(); 60 lock.Release() 110 Lock lock; local 175 Lock lock; local 191 Lock lock; local [all...] |
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.h | 18 class BASE_API Lock { 21 Lock() : lock_() {} 22 ~Lock() {} 23 void Acquire() { lock_.Lock(); } 26 // If the lock is not held, take it and return true. If the lock is already 28 // by a thread already holding the lock (what happens is undefined and an 35 Lock(); 36 ~Lock() {} 40 // acquire the lock a second time (while already holding it) [all...] |
/external/chromium/chrome/browser/importer/ |
firefox_profile_lock_unittest.cc | 30 lock1.Lock(); 34 // Tests basic functionality and verifies that the lock file is deleted after 44 scoped_ptr<FirefoxProfileLock> lock; local 45 EXPECT_EQ(static_cast<FirefoxProfileLock*>(NULL), lock.get()); 47 lock.reset(new FirefoxProfileLock(test_path)); 48 EXPECT_TRUE(lock->HasAcquired()); 50 lock->Unlock(); 51 EXPECT_FALSE(lock->HasAcquired()); 53 // In the posix code, we don't delete the file when releasing the lock. 57 lock->Lock() 86 scoped_ptr<FirefoxProfileLock> lock; local [all...] |
/bionic/libc/kernel/arch-arm/asm/ |
spinlock.h | 19 #define __raw_spin_is_locked(x) ((x)->lock != 0) 20 #define __raw_spin_unlock_wait(lock) do { while (__raw_spin_is_locked(lock)) cpu_relax(); } while (0) 22 #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock) 25 #define __raw_write_can_lock(x) ((x)->lock == 0x80000000) 26 #define __raw_read_can_lock(x) ((x)->lock < 0x80000000)
|
/development/ndk/platforms/android-3/arch-arm/include/asm/ |
spinlock.h | 19 #define __raw_spin_is_locked(x) ((x)->lock != 0) 20 #define __raw_spin_unlock_wait(lock) do { while (__raw_spin_is_locked(lock)) cpu_relax(); } while (0) 22 #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock) 25 #define __raw_write_can_lock(x) ((x)->lock == 0x80000000) 26 #define __raw_read_can_lock(x) ((x)->lock < 0x80000000)
|
/prebuilt/ndk/android-ndk-r4/platforms/android-3/arch-arm/usr/include/asm/ |
spinlock.h | 19 #define __raw_spin_is_locked(x) ((x)->lock != 0) 20 #define __raw_spin_unlock_wait(lock) do { while (__raw_spin_is_locked(lock)) cpu_relax(); } while (0) 22 #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock) 25 #define __raw_write_can_lock(x) ((x)->lock == 0x80000000) 26 #define __raw_read_can_lock(x) ((x)->lock < 0x80000000)
|
/prebuilt/ndk/android-ndk-r4/platforms/android-4/arch-arm/usr/include/asm/ |
spinlock.h | 19 #define __raw_spin_is_locked(x) ((x)->lock != 0) 20 #define __raw_spin_unlock_wait(lock) do { while (__raw_spin_is_locked(lock)) cpu_relax(); } while (0) 22 #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock) 25 #define __raw_write_can_lock(x) ((x)->lock == 0x80000000) 26 #define __raw_read_can_lock(x) ((x)->lock < 0x80000000)
|
/prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-arm/usr/include/asm/ |
spinlock.h | 19 #define __raw_spin_is_locked(x) ((x)->lock != 0) 20 #define __raw_spin_unlock_wait(lock) do { while (__raw_spin_is_locked(lock)) cpu_relax(); } while (0) 22 #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock) 25 #define __raw_write_can_lock(x) ((x)->lock == 0x80000000) 26 #define __raw_read_can_lock(x) ((x)->lock < 0x80000000)
|
/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-arm/usr/include/asm/ |
spinlock.h | 19 #define __raw_spin_is_locked(x) ((x)->lock != 0) 20 #define __raw_spin_unlock_wait(lock) do { while (__raw_spin_is_locked(lock)) cpu_relax(); } while (0) 22 #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock) 25 #define __raw_write_can_lock(x) ((x)->lock == 0x80000000) 26 #define __raw_read_can_lock(x) ((x)->lock < 0x80000000)
|
/prebuilt/ndk/android-ndk-r5/platforms/android-3/arch-arm/usr/include/asm/ |
spinlock.h | 19 #define __raw_spin_is_locked(x) ((x)->lock != 0) 20 #define __raw_spin_unlock_wait(lock) do { while (__raw_spin_is_locked(lock)) cpu_relax(); } while (0) 22 #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock) 25 #define __raw_write_can_lock(x) ((x)->lock == 0x80000000) 26 #define __raw_read_can_lock(x) ((x)->lock < 0x80000000)
|
/prebuilt/ndk/android-ndk-r6/platforms/android-3/arch-arm/usr/include/asm/ |
spinlock.h | 19 #define __raw_spin_is_locked(x) ((x)->lock != 0) 20 #define __raw_spin_unlock_wait(lock) do { while (__raw_spin_is_locked(lock)) cpu_relax(); } while (0) 22 #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock) 25 #define __raw_write_can_lock(x) ((x)->lock == 0x80000000) 26 #define __raw_read_can_lock(x) ((x)->lock < 0x80000000)
|
/external/chromium/net/disk_cache/ |
file_lock.h | 15 // This class implements a file lock that lives on the header of a memory mapped 16 // file. This is NOT a thread related lock, it is a lock to detect corruption 18 // The lock is acquired on the constructor and released on the destructor. 22 // FileLock lock(header); 24 // // At this point the destructor is going to release the lock. 26 // It is important to perform Lock() and Unlock() operations in the right order, 27 // because otherwise the desired effect of the "lock" will not be achieved. If 29 // outside the lock. 37 virtual void Lock(); [all...] |
/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/ |
dlm.h | 18 * Interface to Distributed Lock Manager (DLM) 23 * Lock Modes 45 * Do not queue the lock request on the wait queue if it cannot be granted 46 * immediately. If the lock cannot be granted because of this flag, DLM will 48 * dlm_lock and -EAGAIN in the lock status block when the AST is executed. 52 * Used to cancel a pending lock request or conversion. A converting lock is 57 * Indicates a lock conversion request. For conversions the name and namelen 58 * are ignored and the lock ID in the LKSB is used to identify the lock [all...] |