/php-src/sapi/fpm/fpm/ |
H A D | fpm_atomic.h | 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() 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() 159 static inline int fpm_spinlock_with_max_retries(atomic_t *lock, unsigned int max_retries) in fpm_spinlock_with_max_retries() argument 164 if (atomic_cmp_set(lock, 0, 1)) { in fpm_spinlock_with_max_retries() [all …]
|
H A D | fpm_scoreboard.c | 78 fpm_spinlock(&scoreboard->lock, 1); in fpm_scoreboard_readers_decrement() 85 fpm_unlock(scoreboard->lock); in fpm_scoreboard_readers_decrement() 114 fpm_spinlock(&scoreboard->lock, 1); in fpm_scoreboard_update_begin() 125 fpm_unlock(scoreboard->lock); in fpm_scoreboard_update_begin() 128 fpm_unlock(scoreboard->lock); in fpm_scoreboard_update_begin() 293 fpm_spinlock(&s->lock, 1); in fpm_scoreboard_acquire() 299 fpm_unlock(s->lock); in fpm_scoreboard_acquire() 305 fpm_unlock(s->lock); in fpm_scoreboard_acquire() 394 if (!fpm_spinlock(&proc->lock, nohang)) { in fpm_scoreboard_proc_acquire() 408 proc->lock = 0; in fpm_scoreboard_proc_release()
|
H A D | fpm_scoreboard.h | 25 atomic_t lock; member 54 atomic_t lock; member
|
/php-src/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); 137 // Check that read is possible when a lock is used 139 if ($lock === LockFlag::NoLock) { 185 const LOCKS = ['l', 'd', '-', '' /* No lock flag is like 'd' */]; 190 foreach (LOCKS as $lock) { 192 $arg = $mode.$lock; 281 // TODO Run all lock flags [all …]
|
/php-src/ext/dba/ |
H A D | dba.c | 254 if (info->fp && info->fp != info->lock.fp) { in dba_close_info() 261 if (info->lock.fp) { in dba_close_info() 263 php_stream_pclose(info->lock.fp); in dba_close_info() 265 php_stream_close(info->lock.fp); in dba_close_info() 790 connection->info->lock.mode = lock_mode; in php_dba_open() 831 if (!connection->info->lock.fp) { in php_dba_open() 836 if (!connection->info->lock.fp) { in php_dba_open() 839 if (connection->info->lock.fp) { in php_dba_open() 858 if (!connection->info->lock.fp) { in php_dba_open() 900 if (connection->info->lock.fp != NULL) { in php_dba_open() [all …]
|
H A D | php_dba.h | 52 dba_lock lock; member
|
/php-src/ext/dba/tests/ |
H A D | clean.inc | 5 @unlink($db_filename.'-lock');
|
H A D | value_errors_open.phpt | 130 dba_open(): Argument #2 ($mode) cannot combine mode "-" (no lock) and "t" (test lock) 142 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_db4_000.phpt | 74 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_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-src/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-src/ext/pdo_firebird/tests/ |
H A D | transaction_isolation_level_behavior.phpt | 96 * SERIALIZABLE imposes a strong lock, so the lock will not be released and 98 * If we can set the lock timeout, it might be possible to test it, so I'll leave it as is.
|
/php-src/ext/mysqli/tests/ |
H A D | mysqli_change_user_locks_temporary.phpt | 22 Do not verify that we have aquired a lock, as this would block the test 24 printf("[003] Reading from test should not be possible due to a lock, [%d] %s\n",
|
/php-src/main/ |
H A D | fastcgi.c | 93 struct flock lock; \ 94 lock.l_type = F_WRLCK; \ 95 lock.l_start = 0; \ 96 lock.l_whence = SEEK_SET; \ 97 lock.l_len = 0; \ 109 struct flock lock; \ 110 lock.l_type = F_UNLCK; \ 111 lock.l_start = 0; \ 112 lock.l_whence = SEEK_SET; \ 113 lock.l_len = 0; \ [all …]
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg.init.d | 8 LOCKFILE=/var/lock/subsys/phpdbg
|
/php-src/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-src/ext/pgsql/tests/ |
H A D | 80_bug14383.phpt | 83 SAME OUTPUT AS PREVIOUS RUN (modulo read during write due to no lock)
|
/php-src/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-src/ext/pdo_mysql/tests/ |
H A D | bug79375.phpt | 2 Bug #79375: mysqli_store_result does not report error from lock wait timeout
|