[vlc-devel] commit: macosx: nanosleep() is not a cancellation point in 10.5. (Pierre d' Herbemont )

git version control git at videolan.org
Sat Sep 20 19:01:14 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Sep 20 19:01:55 2008 +0200| [cbeb34539554c3e1fc4223ad153699ce487df3ec] | committer: Pierre d'Herbemont 

macosx: nanosleep() is not a cancellation point in 10.5.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cbeb34539554c3e1fc4223ad153699ce487df3ec
---

 modules/gui/macosx/intf.m |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 0b9360d..2b08386 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -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];
     }
 




More information about the vlc-devel mailing list