[vlc-devel] commit: Revert "Disable cancellation everywhere (except in msg_Dbg) to start with" ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Aug 27 22:57:30 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Aug 10 20:14:17 2008 +0300| [8458705f21592934c5d2a1ebff7d8a8d7c8e63c1] | committer: Rémi Denis-Courmont 

Revert "Disable cancellation everywhere (except in msg_Dbg) to start with"

Every thread function disables cancellation properly now.

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

 src/misc/threads.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/misc/threads.c b/src/misc/threads.c
index 320066e..69b9fd4 100644
--- a/src/misc/threads.c
+++ b/src/misc/threads.c
@@ -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;




More information about the vlc-devel mailing list