Searched refs:lock (Results 1 - 25 of 1233) sorted by relevance

1234567891011>>

/external/kernel-headers/original/linux/
H A Dspinlock_up.h23 static inline void __raw_spin_lock(raw_spinlock_t *lock) argument
25 lock->slock = 0;
29 __raw_spin_lock_flags(raw_spinlock_t *lock, unsigned long flags) argument
32 lock->slock = 0;
35 static inline int __raw_spin_trylock(raw_spinlock_t *lock) argument
37 char oldval = lock->slock;
39 lock->slock = 0;
44 static inline void __raw_spin_unlock(raw_spinlock_t *lock) argument
46 lock->slock = 1;
52 #define __raw_read_lock(lock) d
[all...]
H A Dspinlock_api_up.h19 #define assert_spin_locked(lock) do { (void)(lock); } while (0)
24 * flags straight, to supress compiler warnings of unused lock
27 #define __LOCK(lock) \
28 do { preempt_disable(); __acquire(lock); (void)(lock); } while (0)
30 #define __LOCK_BH(lock) \
31 do { local_bh_disable(); __LOCK(lock); } while (0)
33 #define __LOCK_IRQ(lock) \
34 do { local_irq_disable(); __LOCK(lock); } whil
[all...]
H A Dspinlock.h61 #define LOCK_SECTION_NAME ".text.lock."KBUILD_BASENAME
80 extern int __lockfunc generic__raw_read_trylock(raw_rwlock_t *lock);
92 extern void __spin_lock_init(spinlock_t *lock, const char *name,
94 # define spin_lock_init(lock) \
98 __spin_lock_init((lock), #lock, &__key); \
102 # define spin_lock_init(lock) \
103 do { *(lock) = SPIN_LOCK_UNLOCKED; } while (0)
107 extern void __rwlock_init(rwlock_t *lock, const char *name,
109 # define rwlock_init(lock) \
[all...]
H A Dspinlock_api_smp.h22 void __lockfunc _spin_lock(spinlock_t *lock) __acquires(spinlock_t);
23 void __lockfunc _spin_lock_nested(spinlock_t *lock, int subclass)
25 void __lockfunc _read_lock(rwlock_t *lock) __acquires(rwlock_t);
26 void __lockfunc _write_lock(rwlock_t *lock) __acquires(rwlock_t);
27 void __lockfunc _spin_lock_bh(spinlock_t *lock) __acquires(spinlock_t);
28 void __lockfunc _read_lock_bh(rwlock_t *lock) __acquires(rwlock_t);
29 void __lockfunc _write_lock_bh(rwlock_t *lock) __acquires(rwlock_t);
30 void __lockfunc _spin_lock_irq(spinlock_t *lock) __acquires(spinlock_t);
31 void __lockfunc _read_lock_irq(rwlock_t *lock) __acquires(rwlock_t);
32 void __lockfunc _write_lock_irq(rwlock_t *lock) __acquire
[all...]
/external/bison/lib/glthread/
H A Dlock.c23 #include "glthread/lock.h"
38 glthread_rwlock_init_multithreaded (gl_rwlock_t *lock) argument
42 err = pthread_rwlock_init (&lock->rwlock, NULL);
45 lock->initialized = 1;
50 glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock) argument
52 if (!lock->initialized)
56 err = pthread_mutex_lock (&lock->guard);
59 if (!lock->initialized)
61 err = glthread_rwlock_init_multithreaded (lock);
64 pthread_mutex_unlock (&lock
76 glthread_rwlock_wrlock_multithreaded(gl_rwlock_t *lock) argument
102 glthread_rwlock_unlock_multithreaded(gl_rwlock_t *lock) argument
110 glthread_rwlock_destroy_multithreaded(gl_rwlock_t *lock) argument
128 glthread_rwlock_init_multithreaded(gl_rwlock_t *lock) argument
147 glthread_rwlock_rdlock_multithreaded(gl_rwlock_t *lock) argument
176 glthread_rwlock_wrlock_multithreaded(gl_rwlock_t *lock) argument
203 glthread_rwlock_unlock_multithreaded(gl_rwlock_t *lock) argument
259 glthread_rwlock_destroy_multithreaded(gl_rwlock_t *lock) argument
284 glthread_recursive_lock_init_multithreaded(gl_recursive_lock_t *lock) argument
313 glthread_recursive_lock_init_multithreaded(gl_recursive_lock_t *lock) argument
341 glthread_recursive_lock_lock_multithreaded(gl_recursive_lock_t *lock) argument
367 glthread_recursive_lock_unlock_multithreaded(gl_recursive_lock_t *lock) argument
375 glthread_recursive_lock_destroy_multithreaded(gl_recursive_lock_t *lock) argument
393 glthread_recursive_lock_init_multithreaded(gl_recursive_lock_t *lock) argument
406 glthread_recursive_lock_lock_multithreaded(gl_recursive_lock_t *lock) argument
427 glthread_recursive_lock_unlock_multithreaded(gl_recursive_lock_t *lock) argument
443 glthread_recursive_lock_destroy_multithreaded(gl_recursive_lock_t *lock) argument
532 glthread_recursive_lock_init_multithreaded(gl_recursive_lock_t *lock) argument
545 glthread_recursive_lock_lock_multithreaded(gl_recursive_lock_t *lock) argument
566 glthread_recursive_lock_unlock_multithreaded(gl_recursive_lock_t *lock) argument
582 glthread_recursive_lock_destroy_multithreaded(gl_recursive_lock_t *lock) argument
637 glthread_lock_init_func(gl_lock_t *lock) argument
644 glthread_lock_lock_func(gl_lock_t *lock) argument
662 glthread_lock_unlock_func(gl_lock_t *lock) argument
671 glthread_lock_destroy_func(gl_lock_t *lock) argument
774 glthread_rwlock_init_func(gl_rwlock_t *lock) argument
784 glthread_rwlock_rdlock_func(gl_rwlock_t *lock) argument
838 glthread_rwlock_wrlock_func(gl_rwlock_t *lock) argument
891 glthread_rwlock_unlock_func(gl_rwlock_t *lock) argument
935 glthread_rwlock_destroy_func(gl_rwlock_t *lock) argument
953 glthread_recursive_lock_init_func(gl_recursive_lock_t *lock) argument
962 glthread_recursive_lock_lock_func(gl_recursive_lock_t *lock) argument
992 glthread_recursive_lock_unlock_func(gl_recursive_lock_t *lock) argument
1007 glthread_recursive_lock_destroy_func(gl_recursive_lock_t *lock) argument
[all...]
/external/valgrind/main/none/tests/
H A Dpth_mutexspeed.stdout.exp1 begin 100000 lock--unlocks
2 done 100000 lock--unlocks
/external/kernel-headers/original/asm-arm/
H A Dspinlock_types.h9 volatile unsigned int lock; member in struct:__anon20012
15 volatile unsigned int lock; member in struct:__anon20013
H A Dspinlock.h12 * won the lock, so we try exclusively storing it. A memory barrier
13 * is required after we get a lock, and before we release it, because
20 #define __raw_spin_is_locked(x) ((x)->lock != 0)
21 #define __raw_spin_unlock_wait(lock) \
22 do { while (__raw_spin_is_locked(lock)) cpu_relax(); } while (0)
24 #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock)
26 static inline void __raw_spin_lock(raw_spinlock_t *lock) argument
40 : "r" (&lock->lock), "
46 __raw_spin_trylock(raw_spinlock_t *lock) argument
66 __raw_spin_unlock(raw_spinlock_t *lock) argument
[all...]
/external/chromium_org/third_party/npapi/npspy/extern/nspr/
H A Dprolock.h47 ** diagnostic message when a lock inversion condition is
50 ** The lock ordering detection is complile-time enabled only. in
52 ** directly to PRLock functions, providing no lock order
65 ** lock hierarchy.
76 ** Opaque type for ordered lock.
97 ** DESCRIPTION: PR_CreateOrderedLock() creates an ordered lock.
100 ** order: user defined order of this lock.
101 ** name: name of the lock. For debugging purposes.
126 ** DESCRIPTION: PR_DestroyOrderedLock() destroys the ordered lock
127 ** referenced by lock
146 PROrderedLock *lock variable
174 PROrderedLock *lock variable
202 PROrderedLock *lock variable
[all...]
H A Dprrwlock.h37 ** Description: API to basic reader-writer lock functions of NSPR.
51 * The reader writer lock, PRRWLock, is an opaque object to the clients
64 ** Returns a pointer to a newly created reader-writer lock object.
69 ** If the lock cannot be created because of resource constraints, NULL
78 ** Destroys a given RW lock object.
79 ** INPUTS: PRRWLock *lock - Lock to be freed.
83 NSPR_API(void) PR_DestroyRWLock(PRRWLock *lock); variable
88 ** Apply a read lock (non-exclusive) on a RWLock
89 ** INPUTS: PRRWLock *lock - Lock to be read-locked.
93 NSPR_API(void) PR_RWLock_Rlock(PRRWLock *lock); variable
103 NSPR_API(void) PR_RWLock_Wlock(PRRWLock *lock); variable
113 NSPR_API(void) PR_RWLock_Unlock(PRRWLock *lock); variable
[all...]
/external/valgrind/main/helgrind/
H A Dhg_lock_n_thread.c65 static Bool is_sane_Lock_BASE ( Lock* lock )
67 if (lock == NULL
68 || (lock->magic != LockN_MAGIC && lock->magic != LockP_MAGIC))
70 switch (lock->kind) {
74 if (lock->heldBy == NULL) {
75 if (lock->acquired_at != NULL) return False;
77 return !lock->heldW;
79 if (lock->acquired_at == NULL) return False;
84 if (VG_(isEmptyBag)(lock
[all...]
/external/chromium_org/third_party/WebKit/Source/wtf/
H A DSpinLock.h43 ALWAYS_INLINE void spinLockLock(int volatile* lock) argument
45 while (atomicTestAndSetToOne(lock)) {
46 while (*lock) { } // Spin without spamming locked instructions.
50 ALWAYS_INLINE void spinLockUnlock(int volatile* lock) argument
52 atomicSetOneToZero(lock);
/external/webrtc/src/system_wrappers/source/
H A Drw_lock.cc25 RWLockWrapper* lock = new RWLockWindows(); local
27 RWLockWrapper* lock = new RWLockPosix();
29 if(lock->Init() != 0)
31 delete lock;
35 return lock;
/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/
H A Dpthread_spin_lock.c5 * This translation unit implements spin lock primitives.
42 pthread_spin_lock (pthread_spinlock_t * lock) argument
46 if (NULL == lock || NULL == *lock)
51 if (*lock == PTHREAD_SPINLOCK_INITIALIZER)
55 if ((result = ptw32_spinlock_check_need_init (lock)) != 0)
61 s = *lock;
H A Dpthread_spin_trylock.c5 * This translation unit implements spin lock primitives.
42 pthread_spin_trylock (pthread_spinlock_t * lock) argument
46 if (NULL == lock || NULL == *lock)
51 if (*lock == PTHREAD_SPINLOCK_INITIALIZER)
55 if ((result = ptw32_spinlock_check_need_init (lock)) != 0)
61 s = *lock;
H A Dpthread_spin_unlock.c5 * This translation unit implements spin lock primitives.
42 pthread_spin_unlock (pthread_spinlock_t * lock) argument
46 if (NULL == lock || NULL == *lock)
51 s = *lock;
H A Dptw32_spinlock_check_need_init.c5 * This translation unit implements spin lock primitives.
42 ptw32_spinlock_check_need_init (pthread_spinlock_t * lock) argument
61 if (*lock == PTHREAD_SPINLOCK_INITIALIZER)
63 result = pthread_spin_init (lock, PTHREAD_PROCESS_PRIVATE);
65 else if (*lock == NULL)
H A Dpthread_spin_destroy.c5 * This translation unit implements spin lock primitives.
42 pthread_spin_destroy (pthread_spinlock_t * lock) argument
47 if (lock == NULL || *lock == NULL)
52 if ((s = *lock) != PTHREAD_SPINLOCK_INITIALIZER)
72 *lock = NULL;
88 if (*lock == PTHREAD_SPINLOCK_INITIALIZER)
96 *lock = NULL;
/external/clang/test/CodeGen/
H A D2003-11-01-C99-CompoundLiteral.c4 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 }, };
H A D2003-11-04-EmptyStruct.c4 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-x86/
H A Dspinlock_32.h22 * Simple spin lock operations. There are two variants, one clears IRQ's
35 static inline void __raw_spin_lock(raw_spinlock_t *lock) argument
46 : "+m" (lock->slock) : : "memory");
50 * It is easier for the lock validator if interrupts are not re-enabled
51 * in the middle of a lock-acquire. This is a performance feature anyway
58 static inline void __raw_spin_lock_flags(raw_spinlock_t *lock, unsigned long flags) argument
80 : [slock] "+m" (lock->slock)
87 static inline int __raw_spin_trylock(raw_spinlock_t *lock) argument
92 :"=q" (oldval), "+m" (lock->slock)
106 static inline void __raw_spin_unlock(raw_spinlock_t *lock) argument
113 __raw_spin_unlock(raw_spinlock_t *lock) argument
124 __raw_spin_unlock_wait(raw_spinlock_t *lock) argument
187 __raw_read_trylock(raw_rwlock_t *lock) argument
197 __raw_write_trylock(raw_rwlock_t *lock) argument
[all...]
/external/qemu/android/utils/
H A Dfilelock.c55 ** 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/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
H A DPowerManagerTest.java42 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG");
43 assertFalse(lock.isHeld());
44 lock.acquire();
45 assertTrue(lock.isHeld());
46 lock.acquire();
48 assertTrue(lock.isHeld());
49 lock.release();
51 assertTrue(lock.isHeld());
52 lock.release();
53 assertFalse(lock
[all...]
/external/libmtp/
H A Dlibmtp.sh20 # New code, using lock files instead of copying /dev/console permissions
25 if [ -f /var/run/console/console.lock ]
27 DEVICEOWNER=`cat /var/run/console/console.lock`
28 elif [ -f /var/run/console.lock ]
30 DEVICEOWNER=`cat /var/run/console.lock`
31 elif [ -f /var/lock/console.lock ]
33 DEVICEOWNER=`cat /var/lock/console.lock`
H A Dlibmtp.sh.in20 # New code, using lock files instead of copying /dev/console permissions
25 if [ -f /var/run/console/console.lock ]
27 DEVICEOWNER=`cat /var/run/console/console.lock`
28 elif [ -f /var/run/console.lock ]
30 DEVICEOWNER=`cat /var/run/console.lock`
31 elif [ -f /var/lock/console.lock ]
33 DEVICEOWNER=`cat /var/lock/console.lock`

Completed in 937 milliseconds

1234567891011>>