Home
last modified time | relevance | path

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

/PHP-8.4/ext/opcache/
H A Dzend_shared_alloc.c486 struct flock mem_write_lock; in zend_shared_alloc_lock() local
488 mem_write_lock.l_type = F_WRLCK; in zend_shared_alloc_lock()
489 mem_write_lock.l_whence = SEEK_SET; in zend_shared_alloc_lock()
490 mem_write_lock.l_start = 0; in zend_shared_alloc_lock()
491 mem_write_lock.l_len = 1; in zend_shared_alloc_lock()
499 if (mem_write_lock.l_pid == -1) { in zend_shared_alloc_lock()
500 mem_write_lock.l_pid = getpid(); in zend_shared_alloc_lock()
505 if (fcntl(lock_file, F_SETLKW, &mem_write_lock) == -1) { in zend_shared_alloc_lock()

Completed in 7 milliseconds