Home
last modified time | relevance | path

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

/PHP-7.3/ext/sysvsem/tests/
H A Dnowait.phpt37 echo "P: fail to acquire semaphore $p_sem_id.\n";
45 echo "P: fail to acquire semaphore $c_sem_id.\n";
66 echo "P: failed to acquire semaphore $c_sem_id.\n";
97 echo "C: test failed, Child was able to acquire semaphore $p_sem_id.\n";
101 // The child process did not wait to acquire the semaphore
102 echo "C: failed to acquire semaphore $p_sem_id.\n";
111 echo "C: fail to acquire semaphore $p_sem_id.\n";
128 C: failed to acquire semaphore Resource id #%i.
H A Dsysv.phpt26 echo "Fail to acquire semaphore $sem_id.\n";
30 echo "Success acquire semaphore $sem_id.\n";
103 Success acquire semaphore Resource id #%i.
/PHP-7.3/ext/sysvsem/
H A Dsysvsem.c309 static void php_sysvsem_semop(INTERNAL_FUNCTION_PARAMETERS, int acquire) in php_sysvsem_semop() argument
316 if (acquire) { in php_sysvsem_semop()
330 if (!acquire && sem_ptr->count == 0) { in php_sysvsem_semop()
336 sop.sem_op = acquire ? -1 : 1; in php_sysvsem_semop()
342 …php_error_docref(NULL, E_WARNING, "failed to %s key 0x%x: %s", acquire ? "acquire" : "release", se… in php_sysvsem_semop()
348 sem_ptr->count -= acquire ? -1 : 1; in php_sysvsem_semop()

Completed in 6 milliseconds