Home
last modified time | relevance | path

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

12

/PHP-5.6/sapi/fpm/fpm/
H A Dfpm_atomic.h48 "=a" (res) : "m" (*lock), "a" (old), "r" (set) : "memory"); in atomic_cmp_set()
74 "=a" (res) : "m" (*lock), "a" (old), "r" (set) : "memory"); in atomic_cmp_set()
104 static inline int atomic_cas_64(atomic_t *lock, atomic_uint_t old, atomic_uint_t new) /* {{{ */ in atomic_cas_64() argument
114 return (atomic_cas_64(lock, old, set)==old); in atomic_cmp_set()
121 static inline int atomic_cas_32(atomic_t *lock, atomic_uint_t old, atomic_uint_t new) /* {{{ */ in atomic_cas_32() argument
123 __asm__ __volatile__("cas [%2], %3, %0 " : "=&r"(new) : "0"(new), "r"(lock), "r"(old): "memory"); in atomic_cas_32()
131 return (atomic_cas_32(lock, old, set)==old); in atomic_cmp_set()
146 static inline int fpm_spinlock(atomic_t *lock, int try_once) /* {{{ */ in fpm_spinlock() argument
149 return atomic_cmp_set(lock, 0, 1) ? 1 : 0; in fpm_spinlock()
154 if (atomic_cmp_set(lock, 0, 1)) { in fpm_spinlock()
[all …]
H A Dfpm_scoreboard.c92 fpm_spinlock(&scoreboard->lock, 0); in fpm_scoreboard_update()
157 fpm_unlock(scoreboard->lock); in fpm_scoreboard_update()
198 if (!fpm_spinlock(&s->lock, nohang)) { in fpm_scoreboard_acquire()
210 scoreboard->lock = 0; in fpm_scoreboard_release()
222 if (!fpm_spinlock(&proc->lock, nohang)) { in fpm_scoreboard_proc_acquire()
236 proc->lock = 0; in fpm_scoreboard_proc_release()
H A Dfpm_scoreboard.h22 atomic_t lock; member
51 atomic_t lock; member
H A Dfastcgi.c98 struct flock lock; \
99 lock.l_type = F_WRLCK; \
100 lock.l_start = 0; \
101 lock.l_whence = SEEK_SET; \
102 lock.l_len = 0; \
114 struct flock lock; \
115 lock.l_type = F_UNLCK; \
116 lock.l_start = 0; \
117 lock.l_whence = SEEK_SET; \
118 lock.l_len = 0; \
[all …]
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-5.6/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-5.6/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-5.6/ext/dba/
H A Ddba.c426 if (info->lock.fp) { in dba_close()
428 php_stream_pclose(info->lock.fp); in dba_close()
430 php_stream_close(info->lock.fp); in dba_close()
433 if (info->lock.name) { in dba_close()
818 info->lock.mode = lock_mode; in php_dba_open()
845 if (!info->lock.fp) { in php_dba_open()
850 info->lock.name = opened_path; in php_dba_open()
859 if (!info->lock.fp) { in php_dba_open()
861 if (info->lock.fp) { in php_dba_open()
879 if (!info->lock.fp) { in php_dba_open()
[all …]
H A Dphp_dba.h53 dba_lock lock; member
/PHP-5.6/ext/opcache/
H A Dconfig.m4333 struct flock lock = { 1, 2, 3, 4, 5 };
335 if(lock.l_type == 1 && lock.l_whence == 2 && lock.l_start == 3 && lock.l_len == 4) {
349 struct flock lock = { 1, 2, 3, 4, 5 };
351 if(lock.l_start == 1 && lock.l_len == 2 && lock.l_type == 4 && lock.l_whence == 5) {
/PHP-5.6/ext/standard/tests/file/
H A Dflock_basic.phpt14 $file_handle = fopen("$file_path/lock.tmp", "w");
20 unlink("$file_path/lock.tmp");
/PHP-5.6/TSRM/
H A DTODO1 - Improve the lock in ts_resource_ex() in order to cover less code.
/PHP-5.6/sapi/cgi/
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-5.6/sapi/caudium/
H A DTODO26 ? Recursive mutex lock problem:
/PHP-5.6/sapi/roxen/
H A DREADME5 mode, the default, uses a process global PHP lock in the Roxen
H A DTODO8 - Recursive mutex lock problem:
/PHP-5.6/sapi/phpdbg/
H A Dphpdbg.init.d8 LOCKFILE=/var/lock/subsys/phpdbg
/PHP-5.6/ext/interbase/tests/
H A D005.phpt267 errmsg [lock conflict on no wait transaction deadlock ]
/PHP-5.6/ext/spl/internal/
H A Dsplfileobject.inc115 * @param operation lock operation (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB)
/PHP-5.6/
H A DREADME.STREAMS164 not a lock can be set on this stream. Typically you can only set locks on stdio streams.
/PHP-5.6/ext/sqlite3/libsqlite/
H A Dsqlite3.c26853 struct flock lock;
26856 lock.l_len = 1;
26987 struct flock lock;
27050 lock.l_len = 1L;
27086 lock.l_len = 1L;
27119 lock.l_len = 1L;
27196 struct flock lock;
27322 lock.l_start = lock.l_len = 0L;
55002 p->lock.pBtree = p;
55003 p->lock.iTable = 1;
[all …]

Completed in 461 milliseconds

12