/PHP-8.3/sapi/fpm/fpm/ |
H A D | fpm_atomic.h | 37 static inline atomic_uint_t atomic_cmp_set(atomic_t *lock, atomic_uint_t old, atomic_uint_t set) /*… in atomic_cmp_set() argument 42 "=a" (res) : "m" (*lock), "a" (old), "r" (set) : "memory"); in atomic_cmp_set() 68 "=a" (res) : "m" (*lock), "a" (old), "r" (set) : "memory"); in atomic_cmp_set() 100 __asm__ __volatile__("casx [%2], %3, %0 " : "=&r"(new) : "0"(new), "r"(lock), "r"(old): "memory"); in atomic_cas_64() 108 return (atomic_cas_64(lock, old, set)==old); in atomic_cmp_set() 117 __asm__ __volatile__("cas [%2], %3, %0 " : "=&r"(new) : "0"(new), "r"(lock), "r"(old): "memory"); in atomic_cas_32() 125 return (atomic_cas_32(lock, old, set)==old); in atomic_cmp_set() 140 static inline int fpm_spinlock(atomic_t *lock, int try_once) /* {{{ */ in fpm_spinlock() argument 143 return atomic_cmp_set(lock, 0, 1) ? 1 : 0; in fpm_spinlock() 148 if (atomic_cmp_set(lock, 0, 1)) { in fpm_spinlock() [all …]
|
H A D | fpm_scoreboard.c | 96 fpm_spinlock(&scoreboard->lock, 0); in fpm_scoreboard_update_begin() 173 fpm_unlock(scoreboard->lock); in fpm_scoreboard_update_commit() 244 if (!fpm_spinlock(&s->lock, nohang)) { in fpm_scoreboard_acquire() 256 scoreboard->lock = 0; in fpm_scoreboard_release() 325 if (!fpm_spinlock(&proc->lock, nohang)) { in fpm_scoreboard_proc_acquire() 339 proc->lock = 0; in fpm_scoreboard_proc_release()
|
H A D | fpm_scoreboard.h | 23 atomic_t lock; member 52 atomic_t lock; member
|
/PHP-8.3/ext/mysqli/tests/ |
H A D | mysqli_change_user_get_lock.phpt | 18 $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 D | mysqli_change_user_locks_temporary.phpt | 24 printf("[003] Reading from test should not be possible due to a lock, [%d] %s\n",
|
/PHP-8.3/ext/dba/tests/setup/ |
H A D | setup_dba_tests.inc | 47 $lock_flag = $lock->value; 73 $db_file = set_up_db_ex($handler, $name, $lock); 91 $lock_flag = $lock->value; 92 set_up_db($handler, $name, $lock); 122 // Check that read is possible when a lock is used 124 if ($lock === LockFlag::NoLock) { 170 const LOCKS = ['l', 'd', '-', '' /* No lock flag is like 'd' */]; 175 foreach (LOCKS as $lock) { 177 $arg = $mode.$lock; 266 // TODO Run all lock flags [all …]
|
/PHP-8.3/ext/dba/ |
H A D | dba.c | 276 if (info->lock.fp) { in dba_close() 278 php_stream_pclose(info->lock.fp); in dba_close() 280 php_stream_close(info->lock.fp); in dba_close() 747 info->lock.mode = lock_mode; in php_dba_open() 781 if (!info->lock.fp) { in php_dba_open() 786 if (!info->lock.fp) { in php_dba_open() 789 if (info->lock.fp) { in php_dba_open() 807 if (!info->lock.fp) { in php_dba_open() 823 if (info->lock.fp && is_db_lock) { in php_dba_open() 849 if (info->lock.fp != NULL) { in php_dba_open() [all …]
|
H A D | php_dba.h | 52 dba_lock lock; member
|
/PHP-8.3/ext/dba/tests/ |
H A D | clean.inc | 5 @unlink($db_filename.'-lock');
|
H A D | value_errors_open.phpt | 129 dba_open(): Argument #2 ($mode) cannot combine mode "-" (no lock) and "t" (test lock) 141 dba_popen(): Argument #2 ($mode) cannot combine mode "-" (no lock) and "t" (test lock)
|
H A D | dba_lmdb_readonly.phpt | 34 @unlink($db_filename.'-lock');
|
H A D | dba_db1.phpt | 73 SAME OUTPUT AS PREVIOUS RUN (modulo read during write due to no lock)
|
H A D | dba_db2.phpt | 73 SAME OUTPUT AS PREVIOUS RUN (modulo read during write due to no lock)
|
H A D | dba_db3.phpt | 73 SAME OUTPUT AS PREVIOUS RUN (modulo read during write due to no lock)
|
H A D | dba_db4_000.phpt | 74 SAME OUTPUT AS PREVIOUS RUN (modulo read during write due to no lock)
|
H A D | dba_lmdb_flags.phpt | 61 $db_loc_filename = __DIR__ . '/lock.mdb';
|
H A D | dba_flatfile.phpt | 73 SAME OUTPUT AS PREVIOUS RUN (modulo read during write due to no lock)
|
H A D | dba_inifile.phpt | 80 SAME OUTPUT AS PREVIOUS RUN (modulo read during write due to no lock)
|
/PHP-8.3/ext/pcre/pcre2lib/sljit/ |
H A D | sljitUtils.c | 50 HANDLE lock; in allocator_grab_lock() local 52 lock = CreateMutex(NULL, FALSE, NULL); in allocator_grab_lock() 53 if (InterlockedCompareExchangePointer(&allocator_lock, lock, NULL)) in allocator_grab_lock() 54 CloseHandle(lock); in allocator_grab_lock()
|
/PHP-8.3/main/ |
H A D | fastcgi.c | 95 struct flock lock; \ 96 lock.l_type = F_WRLCK; \ 97 lock.l_start = 0; \ 98 lock.l_whence = SEEK_SET; \ 99 lock.l_len = 0; \ 111 struct flock lock; \ 112 lock.l_type = F_UNLCK; \ 113 lock.l_start = 0; \ 114 lock.l_whence = SEEK_SET; \ 115 lock.l_len = 0; \ [all …]
|
/PHP-8.3/sapi/phpdbg/ |
H A D | phpdbg.init.d | 8 LOCKFILE=/var/lock/subsys/phpdbg
|
/PHP-8.3/ext/pcre/tests/ |
H A D | bug76514.phpt | 427 "name": "composer.json/composer.lock", 443 "composer.json/composer.lock": "dev-597511d6d51b96e4a8afeba2c79982e5", 502 "composer.json/composer.lock": "dev-597511d6d51b96e4a8afeba2c79982e5",
|
/PHP-8.3/ext/pgsql/tests/ |
H A D | 80_bug14383.phpt | 83 SAME OUTPUT AS PREVIOUS RUN (modulo read during write due to no lock)
|
/PHP-8.3/ext/session/tests/user_session_module/ |
H A D | save_handler.inc | 13 * Session data lock is mandatory. Lock must be exclusive. i.e. Block read also. 51 // NOTE: All production session save handler MUST implement "exclusive" lock.
|
/PHP-8.3/ext/pdo_mysql/tests/ |
H A D | bug79375.phpt | 2 Bug #79375: mysqli_store_result does not report error from lock wait timeout
|