Home
last modified time | relevance | path

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

/PHP-8.3/ext/opcache/
H A Dzend_shared_alloc.c481 struct flock mem_write_lock; in zend_shared_alloc_lock() local
483 mem_write_lock.l_type = F_WRLCK; in zend_shared_alloc_lock()
484 mem_write_lock.l_whence = SEEK_SET; in zend_shared_alloc_lock()
485 mem_write_lock.l_start = 0; in zend_shared_alloc_lock()
486 mem_write_lock.l_len = 1; in zend_shared_alloc_lock()
494 if (mem_write_lock.l_pid == -1) { in zend_shared_alloc_lock()
495 mem_write_lock.l_pid = getpid(); in zend_shared_alloc_lock()
500 if (fcntl(lock_file, F_SETLKW, &mem_write_lock) == -1) { in zend_shared_alloc_lock()

Completed in 15 milliseconds