Home
last modified time | relevance | path

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

12

/PHP-7.1/sapi/fpm/fpm/
H A Dfpm_atomic.h47 "=a" (res) : "m" (*lock), "a" (old), "r" (set) : "memory"); in atomic_cmp_set()
73 "=a" (res) : "m" (*lock), "a" (old), "r" (set) : "memory"); in atomic_cmp_set()
103 static inline int atomic_cas_64(atomic_t *lock, atomic_uint_t old, atomic_uint_t new) /* {{{ */ in atomic_cas_64() argument
113 return (atomic_cas_64(lock, old, set)==old); in atomic_cmp_set()
120 static inline int atomic_cas_32(atomic_t *lock, atomic_uint_t old, atomic_uint_t new) /* {{{ */ in atomic_cas_32() argument
122 __asm__ __volatile__("cas [%2], %3, %0 " : "=&r"(new) : "0"(new), "r"(lock), "r"(old): "memory"); in atomic_cas_32()
130 return (atomic_cas_32(lock, old, set)==old); in atomic_cmp_set()
145 static inline int fpm_spinlock(atomic_t *lock, int try_once) /* {{{ */ in fpm_spinlock() argument
148 return atomic_cmp_set(lock, 0, 1) ? 1 : 0; in fpm_spinlock()
153 if (atomic_cmp_set(lock, 0, 1)) { in fpm_spinlock()
[all …]
H A Dfpm_scoreboard.c91 fpm_spinlock(&scoreboard->lock, 0); in fpm_scoreboard_update()
156 fpm_unlock(scoreboard->lock); in fpm_scoreboard_update()
197 if (!fpm_spinlock(&s->lock, nohang)) { in fpm_scoreboard_acquire()
209 scoreboard->lock = 0; in fpm_scoreboard_release()
221 if (!fpm_spinlock(&proc->lock, nohang)) { in fpm_scoreboard_proc_acquire()
235 proc->lock = 0; in fpm_scoreboard_proc_release()
H A Dfpm_scoreboard.h21 atomic_t lock; member
50 atomic_t lock; member
H A Dfpm_status.c95 if (!fpm_spinlock(&scoreboard_p->lock, 1)) { in fpm_status_handle_request()
106 fpm_unlock(scoreboard_p->lock); in fpm_status_handle_request()
/PHP-7.1/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
/PHP-7.1/ext/dba/tests/
H A Ddba016.phpt2 DBA lock modifier error message test
22 Warning: dba_popen(%stest0.dbm,n-t): You cannot combine modifiers - (no lock) and t (test lock) in …
H A Ddba_gdbm.phpt12 $lock_flag = ''; // lock in library
H A Ddba_qdbm.phpt12 $lock_flag = ''; // lock in library
/PHP-7.1/ext/dba/
H A Ddba.c428 if (info->fp && info->fp != info->lock.fp) { in dba_close()
435 if (info->lock.fp) { in dba_close()
437 php_stream_pclose(info->lock.fp); in dba_close()
439 php_stream_close(info->lock.fp); in dba_close()
442 if (info->lock.name) { in dba_close()
836 info->lock.mode = lock_mode; in php_dba_open()
863 if (!info->lock.fp) { in php_dba_open()
873 if (!info->lock.fp) { in php_dba_open()
875 if (info->lock.fp) { in php_dba_open()
889 if (!info->lock.fp) { in php_dba_open()
[all …]
H A Dphp_dba.h56 dba_lock lock; member
/PHP-7.1/ext/opcache/
H A Dconfig.m4350 struct flock lock = { 1, 2, 3, 4, 5 };
352 if(lock.l_type == 1 && lock.l_whence == 2 && lock.l_start == 3 && lock.l_len == 4) {
366 struct flock lock = { 1, 2, 3, 4, 5 };
368 if(lock.l_start == 1 && lock.l_len == 2 && lock.l_type == 4 && lock.l_whence == 5) {
/PHP-7.1/ext/standard/tests/file/
H A Dflock_basic.phpt14 $file_handle = fopen("$file_path/lock.tmp", "w");
20 unlink("$file_path/lock.tmp");
/PHP-7.1/TSRM/
H A DTODO1 - Improve the lock in ts_resource_ex() in order to cover less code.
/PHP-7.1/main/
H A Dfastcgi.c99 struct flock lock; \
100 lock.l_type = F_WRLCK; \
101 lock.l_start = 0; \
102 lock.l_whence = SEEK_SET; \
103 lock.l_len = 0; \
115 struct flock lock; \
116 lock.l_type = F_UNLCK; \
117 lock.l_start = 0; \
118 lock.l_whence = SEEK_SET; \
119 lock.l_len = 0; \
[all …]
/PHP-7.1/sapi/phpdbg/
H A Dphpdbg.init.d8 LOCKFILE=/var/lock/subsys/phpdbg
/PHP-7.1/ext/interbase/tests/
H A D005.phpt267 errmsg [lock conflict on no wait transaction deadlock %a]
/PHP-7.1/ext/pcre/tests/
H A Dpreg_match_error4.phpt815 "name": "composer.json\\/composer.lock",
831 "composer.json\\/composer.lock": "dev-a923f6cdbbc9439cabb74aa9003f6d51",
/PHP-7.1/ext/spl/internal/
H A Dsplfileobject.inc115 * @param operation lock operation (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB)
/PHP-7.1/ext/standard/
H A Dvar_unserializer.re35 …/* fprintf(stderr, "UNSERIALIZE_INIT == lock: %u, level: %u\n", BG(serialize_lock), BG(unserial…
50 …/* fprintf(stderr, "UNSERIALIZE_DESTROY == lock: %u, level: %u\n", BG(serialize_lock), BG(unserial…
/PHP-7.1/
H A DREADME.STREAMS164 not a lock can be set on this stream. Typically you can only set locks on stdio streams.
/PHP-7.1/ext/sqlite3/libsqlite/
H A Dsqlite3.c34022 lock.l_len = 1;
34189 struct flock lock;
34252 lock.l_len = 1L;
34288 lock.l_len = 1L;
34399 struct flock lock;
34521 lock.l_start = lock.l_len = 0L;
36915 struct flock lock;
36938 lock.l_len = 1;
36962 assert( lock.l_type==F_UNLCK || lock.l_type==F_RDLCK );
65565 p->lock.iTable = 1;
[all …]
/PHP-7.1/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)])
1187 # Check to see if we can do hard links to lock some files if needed
1194 AC_MSG_CHECKING([if we can lock with hard links])
4272 # Must we lock files when doing compilation?
/PHP-7.1/Zend/
H A DZEND_CHANGES1015 in multi-threaded environments as it doesn't need to use mutexes to lock

Completed in 525 milliseconds

12