]> git.sesse.net Git - vlc/commitdiff
macosx: nanosleep() is not a cancellation point in 10.5.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 20 Sep 2008 17:01:55 +0000 (19:01 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 20 Sep 2008 17:04:19 +0000 (19:04 +0200)
modules/gui/macosx/intf.m

index 0b9360df257e4e6f3c9a995680c3d0634bd2a87c..2b08386365933abc301a431276ad8051fda336a4 100644 (file)
@@ -1440,7 +1440,9 @@ static void * manage_cleanup( void * args )
 
         vlc_mutex_unlock( &p_intf->change_lock );
 
+        pthread_test_cancel(); /* In 10.5 nanosleep is not a cancellation point */
         msleep( INTF_IDLE_SLEEP );
+
         [pool release];
     }