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

1234567891011>>

/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/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 (UNLIKELY(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/third_party/webrtc/system_wrappers/source/
H A Drw_lock.cc27 RWLockWrapper* lock = RWLockWin::Create(); local
28 if (lock) {
29 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/qemu/android/utils/
H A Dfilelock.c54 ** lock - a lock file (file + '.lock')
59 ** attemp to link 'lock' to 'temp'
60 ** if the link succeeds, we obtain the lock
64 ** unlink 'lock'
67 ** 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 )
386 FileLock* lock; local
405 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`
/external/jemalloc/test/src/
H A Dmtx.c12 if (!InitializeCriticalSectionAndSpinCount(&mtx->lock, _CRT_SPINCOUNT))
15 mtx->lock = 0;
22 if (pthread_mutex_init(&mtx->lock, &attr) != 0) {
38 pthread_mutex_destroy(&mtx->lock);
47 EnterCriticalSection(&mtx->lock);
49 OSSpinLockLock(&mtx->lock);
51 pthread_mutex_lock(&mtx->lock);
60 LeaveCriticalSection(&mtx->lock);
62 OSSpinLockUnlock(&mtx->lock);
64 pthread_mutex_unlock(&mtx->lock);
[all...]
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/
H A DAndroid.mk17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/Android.mk
19 test_name := thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/lock
20 test_src := lock.pass.cpp
23 test_name := thread/thread.mutex/thread.lock/thread.lock
[all...]
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
H A DAndroid.mk17 test_makefile := external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/Android.mk
19 test_name := thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/lock
20 test_src := lock.pass.cpp
23 test_name := thread/thread.mutex/thread.lock/thread.lock
[all...]
/external/libvpx/libvpx/vpx_ports/
H A Dvpx_once.h21 static CRITICAL_SECTION *lock; local
24 void *lock_ptr = &lock;
28 * lock.
35 /* Get a lock. We create one and try to make it the one-true-lock,
50 /* At this point, we have a lock that can be synchronized on. We don't
54 EnterCriticalSection(lock);
62 LeaveCriticalSection(lock);
69 DeleteCriticalSection(lock);
70 free(lock);
80 static pthread_once_t lock = PTHREAD_ONCE_INIT; local
[all...]
/external/chromium_org/base/synchronization/
H A Dlock_unittest.cc5 #include "base/synchronization/lock.h"
19 explicit BasicLockTestThread(Lock* lock) : lock_(lock), acquired_(0) {} argument
52 Lock lock; local
53 BasicLockTestThread thread(&lock);
60 lock.Acquire();
62 lock.Release();
65 lock.Acquire();
68 lock.Release();
71 if (lock
94 TryLockTestThread(Lock* lock) argument
112 Lock lock; local
152 MutexLockTestThread(Lock* lock, int* value) argument
155 DoStuff(Lock* lock, int* value) argument
177 Lock lock; local
193 Lock lock; local
[all...]
/external/chromium_org/third_party/sfntly/cpp/src/test/
H A Dlock_test.cc20 #include "sfntly/port/lock.h"
29 BasicLockTestThread(Lock* lock) : lock_(lock), acquired_(0) {} argument
62 Lock lock; local
63 BasicLockTestThread thread(&lock);
70 lock.Acquire();
72 lock.Unlock();
75 lock.Acquire();
78 lock.Unlock();
81 if (lock
106 TryLockTestThread(Lock* lock) argument
124 Lock lock; local
165 MutexLockTestThread(Lock* lock, int* value) argument
168 DoStuff(Lock* lock, int* value) argument
190 Lock lock; local
207 Lock lock; local
[all...]

Completed in 488 milliseconds

1234567891011>>