Added trywait and timedwait functions. Also added convenience function to retrieve last occured error

This commit is contained in:
ftc
2019-08-03 00:08:48 +03:00
parent 2ed2ffc139
commit 213cf2d810
2 changed files with 84 additions and 2 deletions
+3
View File
@@ -13,6 +13,9 @@ PHP_FUNCTION(posix_sem_unlink);
PHP_FUNCTION(posix_sem_getvalue);
PHP_FUNCTION(posix_sem_post);
PHP_FUNCTION(posix_sem_wait);
PHP_FUNCTION(posix_sem_trywait);
PHP_FUNCTION(posix_sem_timedwait);
PHP_FUNCTION(posix_sem_error);
extern zend_module_entry posix_semaphores_module_entry;
#define phpext_posix_semaphores_ptr &posix_semaphores_module_entry;