]> git.sesse.net Git - vlc/commitdiff
Revert "Disable cancellation everywhere (except in msg_Dbg) to start with"
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 10 Aug 2008 17:14:17 +0000 (20:14 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 27 Aug 2008 19:43:08 +0000 (22:43 +0300)
Every thread function disables cancellation properly now.

src/misc/threads.c

index 320066ed69af65a92fe8c01bfb8c0c0b4674293f..69b9fd44697df0695c63ae2bc15847d9fca636a5 100644 (file)
@@ -640,16 +640,13 @@ static void *thread_entry (void *data)
 {
     vlc_object_t *obj = ((struct vlc_thread_boot *)data)->object;
     void *(*func) (vlc_object_t *) = ((struct vlc_thread_boot *)data)->entry;
-    int canc;
 
     free (data);
 #ifndef NDEBUG
     vlc_threadvar_set (&thread_object_key, obj);
 #endif
     msg_Dbg (obj, "thread started");
-    canc = vlc_savecancel ();
     func (obj);
-    vlc_restorecancel (canc);
     msg_Dbg (obj, "thread ended");
 
     return NULL;