Home
last modified time | relevance | path

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

12

/PHP-8.3/sapi/fpm/fpm/
H A Dfpm_atomic.h37 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 Dfpm_scoreboard.c96 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 Dfpm_scoreboard.h23 atomic_t lock; member
52 atomic_t lock; member
/PHP-8.3/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",
/PHP-8.3/ext/dba/tests/setup/
H A Dsetup_dba_tests.inc47 $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 Ddba.c276 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 Dphp_dba.h52 dba_lock lock; member
/PHP-8.3/ext/dba/tests/
H A Dclean.inc5 @unlink($db_filename.'-lock');
H A Dvalue_errors_open.phpt129 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 Ddba_lmdb_readonly.phpt34 @unlink($db_filename.'-lock');
H A Ddba_db1.phpt73 SAME OUTPUT AS PREVIOUS RUN (modulo read during write due to no lock)
H A Ddba_db2.phpt73 SAME OUTPUT AS PREVIOUS RUN (modulo read during write due to no lock)
H A Ddba_db3.phpt73 SAME OUTPUT AS PREVIOUS RUN (modulo read during write due to no lock)
H A Ddba_db4_000.phpt74 SAME OUTPUT AS PREVIOUS RUN (modulo read during write due to no lock)
H A Ddba_lmdb_flags.phpt61 $db_loc_filename = __DIR__ . '/lock.mdb';
H A Ddba_flatfile.phpt73 SAME OUTPUT AS PREVIOUS RUN (modulo read during write due to no lock)
H A Ddba_inifile.phpt80 SAME OUTPUT AS PREVIOUS RUN (modulo read during write due to no lock)
/PHP-8.3/ext/pcre/pcre2lib/sljit/
H A DsljitUtils.c50 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 Dfastcgi.c95 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 Dphpdbg.init.d8 LOCKFILE=/var/lock/subsys/phpdbg
/PHP-8.3/ext/pcre/tests/
H A Dbug76514.phpt427 "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 D80_bug14383.phpt83 SAME OUTPUT AS PREVIOUS RUN (modulo read during write due to no lock)
/PHP-8.3/ext/session/tests/user_session_module/
H A Dsave_handler.inc13 * 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 Dbug79375.phpt2 Bug #79375: mysqli_store_result does not report error from lock wait timeout

Completed in 33 milliseconds

12