Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 6 of 6) sorted by relevance

/php-uv/tests/
H A D700-uv_rwlock.phpt7 $lock = uv_rwlock_init();
9 uv_rwlock_rdlock($lock);
10 if (uv_rwlock_tryrdlock($lock)) {
15 uv_rwlock_rdunlock($lock);
16 if (uv_rwlock_tryrdlock($lock)) {
22 uv_rwlock_rdunlock($lock);
H A D700-uv_wrlock.phpt5 $lock = uv_rwlock_init();
7 if (uv_rwlock_trywrlock($lock)) {
13 uv_rwlock_wrunlock($lock);
14 if (uv_rwlock_trywrlock($lock)) {
20 uv_rwlock_wrunlock($lock);
H A D701-uv_mutex.phpt5 $lock = uv_mutex_init();
7 if (uv_mutex_trylock($lock)) {
13 uv_mutex_unlock($lock);
14 if (uv_mutex_trylock($lock)) {
20 uv_mutex_unlock($lock);
/php-uv/
H A Dphp_uv.c200 lock->type = lock_type;
617 php_uv_lock_t *lock; local
634 lock->locked = 0x02;
640 if (lock->locked) {
646 lock->locked = 0x01;
652 lock->locked = 0x01;
668 php_uv_lock_t *lock; local
715 php_uv_lock_t *lock; local
744 if (lock->locked) {
2667 lock->locked = 0;
[all …]
H A Dphp_uv.h204 } lock; member
H A DREADME.md1766 set read lock
1792 unlock read lock
1810 set write lock
1836 unlock write lock
1866 ### void uv_mutex_lock(uv_lock $lock)
1870 lock mutex
1884 ### bool uv_mutex_trylock(uv_lock $lock)

Completed in 37 milliseconds