Home
last modified time | relevance | path

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

12

/php-src/sapi/fpm/fpm/
H A Dfpm_atomic.h42 "=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 Dfpm_scoreboard.c78 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 Dfpm_scoreboard.h25 atomic_t lock; member
54 atomic_t lock; member
/php-src/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);
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 Ddba.c254 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 Dphp_dba.h52 dba_lock lock; member
/php-src/ext/dba/tests/
H A Dclean.inc5 @unlink($db_filename.'-lock');
H A Dvalue_errors_open.phpt130 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 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_db4_000.phpt74 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_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-src/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-src/ext/pdo_firebird/tests/
H A Dtransaction_isolation_level_behavior.phpt96 * 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 Dmysqli_change_user_locks_temporary.phpt22 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 Dfastcgi.c93 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 Dphpdbg.init.d8 LOCKFILE=/var/lock/subsys/phpdbg
/php-src/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-src/ext/pgsql/tests/
H A D80_bug14383.phpt83 SAME OUTPUT AS PREVIOUS RUN (modulo read during write due to no lock)
/php-src/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-src/ext/pdo_mysql/tests/
H A Dbug79375.phpt2 Bug #79375: mysqli_store_result does not report error from lock wait timeout

Completed in 41 milliseconds

12