[vlc-devel] commit: llvm seems to solve our cancellation issues. Revert " Tentative hack for OSX msleep/mwait cancellation" (Derk-Jan Hartman )
git version control
git at videolan.org
Fri Feb 20 15:07:47 CET 2009
vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Fri Feb 20 15:06:10 2009 +0100| [9cb16e8f71a79a2cd2a012cca0923a3660a6d32c] | committer: Derk-Jan Hartman
llvm seems to solve our cancellation issues. Revert "Tentative hack for OSX msleep/mwait cancellation"
This reverts commit 3b6ed8084e27fa27f51d3abdeb37052ea9af38fb.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9cb16e8f71a79a2cd2a012cca0923a3660a6d32c
---
src/misc/mtime.c | 21 +--------------------
1 files changed, 1 insertions(+), 20 deletions(-)
diff --git a/src/misc/mtime.c b/src/misc/mtime.c
index 96049e5..bc622c1 100644
--- a/src/misc/mtime.c
+++ b/src/misc/mtime.c
@@ -350,25 +350,6 @@ void mwait( mtime_t date )
}
vlc_testcancel();
-#elif defined( __APPLE__ )
- /* Explicit hack: OSX does not cancel at nanosleep() */
- struct vlc_mutex_t lock;
- struct vlc_cond_t wait;
-
- vlc_mutex_init (&lock);
- vlc_cond_init (&wait);
- vlc_mutex_lock (&lock);
-
- vlc_cleanup_push (vlc_mutex_destroy, &lock);
- vlc_cleanup_push (vlc_cond_destroy, &wait);
- vlc_cleanup_push (vlc_mutex_unlock, &lock);
-
- vlc_cond_timedwait (&wait, &lock, date);
-
- vlc_cleanup_run ();
- vlc_cleanup_run ();
- vlc_cleanup_run ();
-
#else
mtime_t delay = date - mdate();
if( delay > 0 )
@@ -417,7 +398,7 @@ void msleep( mtime_t delay )
#elif defined( HAVE_KERNEL_OS_H )
snooze( delay );
-#elif defined( WIN32 ) || defined( UNDER_CE ) || defined( __APPLE__ )
+#elif defined( WIN32 ) || defined( UNDER_CE )
mwait (mdate () + delay);
#elif defined( HAVE_NANOSLEEP )
More information about the vlc-devel
mailing list