Commit e1cb28a3 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

mtime: Make nanosleep a bit more cancelable than what it is on osx.

parent 340c83d8
......@@ -366,6 +366,20 @@ void mwait( mtime_t date )
#include "libvlc.h" /* vlc_backtrace() */
#undef msleep
#if defined(__APPLE__) && defined( HAVE_NANOSLEEP )
/* Mac OS X 10.5's nanosleep is not a cancellation point */
static inline int
semi_testcancelable_nanosleep(const struct timespec *rqtp, struct timespec *rmtp)
int ret;
ret = nanosleep(rqtp, rmtp);
return ret;
#define nanosleep semi_testcancelable_nanosleep
* Portable usleep(). Cancellation point.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment