Home
last modified time | relevance | path

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

12

/PHP-5.4/sapi/fpm/fpm/
H A Dfpm_atomic.h48 "=a" (res) : "m" (*lock), "a" (old), "r" (set) : "memory"); in atomic_cmp_set()
74 "=a" (res) : "m" (*lock), "a" (old), "r" (set) : "memory"); in atomic_cmp_set()
104 static inline int atomic_cas_64(atomic_t *lock, atomic_uint_t old, atomic_uint_t new) /* {{{ */ in atomic_cas_64() argument
114 return (atomic_cas_64(lock, old, set)==old); in atomic_cmp_set()
121 static inline int atomic_cas_32(atomic_t *lock, atomic_uint_t old, atomic_uint_t new) /* {{{ */ in atomic_cas_32() argument
123 __asm__ __volatile__("cas [%2], %3, %0 " : "=&r"(new) : "0"(new), "r"(lock), "r"(old): "memory"); in atomic_cas_32()
131 return (atomic_cas_32(lock, old, set)==old); in atomic_cmp_set()
146 static inline int fpm_spinlock(atomic_t *lock, int try_once) /* {{{ */ in fpm_spinlock() argument
149 return atomic_cmp_set(lock, 0, 1) ? 1 : 0; in fpm_spinlock()
154 if (atomic_cmp_set(lock, 0, 1)) { in fpm_spinlock()
[all …]
H A Dfpm_scoreboard.c87 fpm_spinlock(&scoreboard->lock, 0); in fpm_scoreboard_update()
146 fpm_unlock(scoreboard->lock); in fpm_scoreboard_update()
187 if (!fpm_spinlock(&s->lock, nohang)) { in fpm_scoreboard_acquire()
199 scoreboard->lock = 0; in fpm_scoreboard_release()
211 if (!fpm_spinlock(&proc->lock, nohang)) { in fpm_scoreboard_proc_acquire()
225 proc->lock = 0; in fpm_scoreboard_proc_release()
H A Dfpm_scoreboard.h22 atomic_t lock; member
51 atomic_t lock; member
H A Dfastcgi.c100 struct flock lock; \
101 lock.l_type = F_WRLCK; \
102 lock.l_start = 0; \
103 lock.l_whence = SEEK_SET; \
104 lock.l_len = 0; \
116 struct flock lock; \
117 lock.l_type = F_UNLCK; \
118 lock.l_start = 0; \
119 lock.l_whence = SEEK_SET; \
120 lock.l_len = 0; \
[all …]
H A Dfpm_status.c95 if (!fpm_spinlock(&scoreboard_p->lock, 1)) { in fpm_status_handle_request()
106 fpm_unlock(scoreboard_p->lock); in fpm_status_handle_request()
/PHP-5.4/ext/mysqli/tests/
H A Dmysqli_change_user_get_lock.phpt18 $lock = 'phptest_' . mt_rand(0, 100000);
23 if (!$res = mysqli_query($link, sprintf('SELECT GET_LOCK("%s", 2) AS _ok', $lock)))
32 printf("... lock '%s' acquired by thread %d\n", $lock, $thread_id);
45 printf("... calling IS_USED_LOCK() on '%s' using thread '%d'\n", $lock, $new_thread_id);
54 $lock,
57 printf("... calling IS_FREE_LOCK() on '%s' using thread '%d'\n", $lock, $new_thread_id);
66 $lock,
71 /* Ok, let's try a NEW connection and a NEW lock! */
79 } while ($lock == $newlock);
91 $lock,
[all …]
H A Dmysqli_change_user_locks_temporary.phpt24 printf("[003] Reading from test should not be possible due to a lock, [%d] %s\n",
H A Dmysqli_insert_id.phpt77 between the second last insert and the lock, therefore don't stop just bail
/PHP-5.4/ext/dba/tests/
H A Ddba016.phpt2 DBA lock modifier error message test
22 Warning: dba_popen(%stest0.dbm,n-t): You cannot combine modifiers - (no lock) and t (test lock) in …
H A Ddba_gdbm.phpt12 $lock_flag = ''; // lock in library
H A Ddba_qdbm.phpt12 $lock_flag = ''; // lock in library
/PHP-5.4/ext/dba/
H A Ddba.c426 if (info->lock.fp) { in dba_close()
428 php_stream_pclose(info->lock.fp); in dba_close()
430 php_stream_close(info->lock.fp); in dba_close()
433 if (info->lock.name) { in dba_close()
818 info->lock.mode = lock_mode; in php_dba_open()
845 if (!info->lock.fp) { in php_dba_open()
850 info->lock.name = opened_path; in php_dba_open()
859 if (!info->lock.fp) { in php_dba_open()
861 if (info->lock.fp) { in php_dba_open()
879 if (!info->lock.fp) { in php_dba_open()
[all …]
H A Dphp_dba.h53 dba_lock lock; member
/PHP-5.4/ext/standard/tests/file/
H A Dflock_basic.phpt14 $file_handle = fopen("$file_path/lock.tmp", "w");
20 unlink("$file_path/lock.tmp");
/PHP-5.4/TSRM/
H A DTODO1 - Improve the lock in ts_resource_ex() in order to cover less code.
/PHP-5.4/sapi/cgi/
H A Dfastcgi.c99 struct flock lock; \
100 lock.l_type = F_WRLCK; \
101 lock.l_start = 0; \
102 lock.l_whence = SEEK_SET; \
103 lock.l_len = 0; \
115 struct flock lock; \
116 lock.l_type = F_UNLCK; \
117 lock.l_start = 0; \
118 lock.l_whence = SEEK_SET; \
119 lock.l_len = 0; \
[all …]
/PHP-5.4/sapi/caudium/
H A DTODO26 ? Recursive mutex lock problem:
/PHP-5.4/sapi/roxen/
H A DREADME5 mode, the default, uses a process global PHP lock in the Roxen
H A DTODO8 - Recursive mutex lock problem:
/PHP-5.4/ext/interbase/tests/
H A D005.phpt267 errmsg [lock conflict on no wait transaction deadlock ]
/PHP-5.4/ext/spl/internal/
H A Dsplfileobject.inc115 * @param operation lock operation (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB)
/PHP-5.4/
H A DREADME.STREAMS164 not a lock can be set on this stream. Typically you can only set locks on stdio streams.
/PHP-5.4/ext/sqlite3/libsqlite/
H A Dsqlite3.c26853 struct flock lock;
26856 lock.l_len = 1;
26987 struct flock lock;
27050 lock.l_len = 1L;
27086 lock.l_len = 1L;
27119 lock.l_len = 1L;
27196 struct flock lock;
27322 lock.l_start = lock.l_len = 0L;
55002 p->lock.pBtree = p;
55003 p->lock.iTable = 1;
[all …]
/PHP-5.4/build/
H A Dlibtool.m4195 AC_ARG_ENABLE([libtool-lock],
196 [ --disable-libtool-lock avoid locking (might break parallel builds)])
563 #AC_ARG_ENABLE([libtool-lock],
564 #[ --disable-libtool-lock avoid locking (might break parallel builds)])
1181 # Check to see if we can do hard links to lock some files if needed
1188 AC_MSG_CHECKING([if we can lock with hard links])
4265 # Must we lock files when doing compilation?
/PHP-5.4/Zend/
H A DZEND_CHANGES1015 in multi-threaded environments as it doesn't need to use mutexes to lock

Completed in 504 milliseconds

12