diff options
Diffstat (limited to 'src/pth.h')
-rw-r--r-- | src/pth.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -25,5 +25,16 @@ void prne_init_worker (prne_worker_t *w); void prne_free_worker (prne_worker_t *w); void prne_fin_worker (prne_worker_t *w); +/* Workaround for bug in GNU Pth +* Calling pth_poll() with pollfd element whose fd is negative value results in +* undefined behaviour as stated in POSIX(FD_SET() with invalid value is +* undefined). GNU Pth uses FD_SET() with invalid values on purpose to achieve +* something. +*/ +int prne_pth_poll ( + struct pollfd *pfd, + const nfds_t nfs, + const int timeout, + pth_event_t ev); void prne_pth_cv_notify (pth_mutex_t *lock, pth_cond_t *cond, bool broadcast); pth_time_t prne_pth_tstimeout (const struct timespec ts); |