Add optional nowait argument to sem_acquire
| Request #67990 | Add optional nowait argument to sem_acquire | ||||
|---|---|---|---|---|---|
| Submitted: | 2014-09-10 05:27 UTC | Modified: | 2014-09-10 05:49 UTC | ||
| From: | mbeccati@php.net | Assigned: | mbeccati (profile) | ||
| Status: | Closed | Package: | Semaphore related | ||
| PHP Version: | 5.6.1 | OS: | Anything but Windows | ||
| Private report: | No | CVE-ID: | None | ||
[2014-09-10 05:27 UTC] mbeccati@php.net
Description: ------------ Historically sem_acquire blocks the caller until the semaphore is acquired. The new option will allow the function to return immediately in case the semaphore is not available. Bug #39168 suggests adding a timeout, but the underlying semop() function doesn't allow that. Some OSes (Linux, Solaris) have semtimedop(), but given it's not universally supported, I left it out.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2014-09-10 05:49 UTC] mbeccati@php.net
-Status: Open +Status: Closed -PHP Version: 5.6Git-2014-09-10 (Git) +PHP Version: 5.6.1 -Assigned To: +Assigned To: mbeccati
[2014-09-10 05:49 UTC] mbeccati@php.net