xbt_cond_timedwait can't be used in C code
Hello,
I have just noticed:
../../src/common/thread.c: In function ‘starpu_pthread_cond_timedwait’:
../../src/common/thread.c:358:8: error: void value not ignored as it ought to be
ret = xbt_cond_timedwait(*cond, *mutex, delay) ? ETIMEDOUT : 0;
and indeed in the .h file:
/** @brief Blocks onto the given condition variable, but only for the given amount of time. a timeout exception is
* raised if it was impossible to acquire it in the given time frame */
XBT_PUBLIC(void) xbt_cond_timedwait(xbt_cond_t cond, xbt_mutex_t mutex, double delay);
but exceptions can't be catched in C
Samuel