Home
last modified time | relevance | path

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

/PHP-7.4/sapi/fpm/fpm/
H A Dfpm_atomic.h41 static inline atomic_uint_t atomic_cmp_set(atomic_t *lock, atomic_uint_t old, atomic_uint_t set) /*… in atomic_cmp_set() argument
46 "=a" (res) : "m" (*lock), "a" (old), "r" (set) : "memory"); in atomic_cmp_set()
72 "=a" (res) : "m" (*lock), "a" (old), "r" (set) : "memory"); in atomic_cmp_set()
104 __asm__ __volatile__("casx [%2], %3, %0 " : "=&r"(new) : "0"(new), "r"(lock), "r"(old): "memory"); in atomic_cas_64()
112 return (atomic_cas_64(lock, old, set)==old); in atomic_cmp_set()
121 __asm__ __volatile__("cas [%2], %3, %0 " : "=&r"(new) : "0"(new), "r"(lock), "r"(old): "memory"); in atomic_cas_32()
129 return (atomic_cas_32(lock, old, set)==old); in atomic_cmp_set()
144 static inline int fpm_spinlock(atomic_t *lock, int try_once) /* {{{ */ in fpm_spinlock() argument
147 return atomic_cmp_set(lock, 0, 1) ? 1 : 0; in fpm_spinlock()
152 if (atomic_cmp_set(lock, 0, 1)) { in fpm_spinlock()
[all …]
H A Dfpm_scoreboard.c83 fpm_spinlock(&scoreboard->lock, 0); in fpm_scoreboard_update()
148 fpm_unlock(scoreboard->lock); in fpm_scoreboard_update()
209 if (!fpm_spinlock(&s->lock, nohang)) { in fpm_scoreboard_acquire()
221 scoreboard->lock = 0; in fpm_scoreboard_release()
233 if (!fpm_spinlock(&proc->lock, nohang)) { in fpm_scoreboard_proc_acquire()
247 proc->lock = 0; in fpm_scoreboard_proc_release()
H A Dfpm_scoreboard.h20 atomic_t lock; member
49 atomic_t lock; member
H A Dfpm_status.c191 if (!fpm_spinlock(&scoreboard_p->lock, 1)) { in fpm_status_handle_request()
202 fpm_unlock(scoreboard_p->lock); in fpm_status_handle_request()
/PHP-7.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
H A Dbug79375.phpt2 Bug #79375: mysqli_store_result does not report error from lock wait timeout
/PHP-7.4/ext/dba/tests/
H A Ddba016.phpt2 DBA lock modifier error message test
26 Warning: dba_popen(%stest0.dbm,n-t): You cannot combine modifiers - (no lock) and t (test lock) in …
H A Dclean.inc5 @unlink($db_filename.'-lock');
H A Ddba_lmdb.phpt12 $lock_flag = ''; // lock in library
H A Ddba_qdbm.phpt12 $lock_flag = ''; // lock in library
H A Ddba_gdbm.phpt12 $lock_flag = ''; // lock in library
/PHP-7.4/ext/dba/
H A Ddba.c438 if (info->lock.fp) { in dba_close()
440 php_stream_pclose(info->lock.fp); in dba_close()
442 php_stream_close(info->lock.fp); in dba_close()
445 if (info->lock.name) { in dba_close()
874 info->lock.mode = lock_mode; in php_dba_open()
904 if (!info->lock.fp) { in php_dba_open()
914 if (!info->lock.fp) { in php_dba_open()
916 if (info->lock.fp) { in php_dba_open()
930 if (!info->lock.fp) { in php_dba_open()
946 if (info->lock.fp && lock_dbf) { in php_dba_open()
[all …]
H A Dphp_dba.h54 dba_lock lock; member
/PHP-7.4/main/
H A Dfastcgi.c97 struct flock lock; \
98 lock.l_type = F_WRLCK; \
99 lock.l_start = 0; \
100 lock.l_whence = SEEK_SET; \
101 lock.l_len = 0; \
113 struct flock lock; \
114 lock.l_type = F_UNLCK; \
115 lock.l_start = 0; \
116 lock.l_whence = SEEK_SET; \
117 lock.l_len = 0; \
[all …]
/PHP-7.4/sapi/phpdbg/
H A Dphpdbg.init.d8 LOCKFILE=/var/lock/subsys/phpdbg
/PHP-7.4/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",
H A Dpreg_match_error4.phpt815 "name": "composer.json\\/composer.lock",
831 "composer.json\\/composer.lock": "dev-a923f6cdbbc9439cabb74aa9003f6d51",
/PHP-7.4/ext/session/tests/
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-7.4/ext/pdo_mysql/tests/
H A Dbug79375.phpt2 Bug #79375: mysqli_store_result does not report error from lock wait timeout
/PHP-7.4/ext/standard/
H A Dvar_unserializer.re59 …/* fprintf(stderr, "UNSERIALIZE_INIT == lock: %u, level: %u\n", BG(serialize_lock), BG(unserial…
82 …/* fprintf(stderr, "UNSERIALIZE_DESTROY == lock: %u, level: %u\n", BG(serialize_lock), BG(unserial…
/PHP-7.4/docs/
H A Dstreams.md172 or not a lock can be set on this stream. Typically you can only set locks on
/PHP-7.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)])
1183 # Check to see if we can do hard links to lock some files if needed
1190 AC_MSG_CHECKING([if we can lock with hard links])
4268 # Must we lock files when doing compilation?
/PHP-7.4/
H A DNEWS568 . Fixed bug #79375 (mysqli_store_result does not report error from lock wait

Completed in 60 milliseconds