Win32: unimplement thread result
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 1 Aug 2009 20:52:24 +0000 (23:52 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 2 Aug 2009 06:27:13 +0000 (09:27 +0300)
This is never used currently. Removing it simplifies the next commits.

include/vlc_threads.h
src/misc/w32thread.c

index 55fea78..fd00fd2 100644 (file)
@@ -129,7 +129,6 @@ struct vlc_timer_t
 typedef struct
 {
     HANDLE handle;
-    void  *result;
 #if defined( UNDER_CE )
     HANDLE cancel_event;
 #endif
index e0e06a7..afbacfa 100644 (file)
@@ -427,7 +427,7 @@ static unsigned __stdcall vlc_entry (void *p)
 #endif
 
     vlc_threadvar_set (cancel_key, &cancel_data);
-    data.handle->result = data.func (data.data);
+    data.func (data.data);
     return 0;
 }
 
@@ -505,8 +505,7 @@ void vlc_join (vlc_thread_t handle, void **result)
                                                         == WAIT_IO_COMPLETION);
 
     CloseHandle (handle->handle);
-    if (result)
-        *result = handle->result;
+    assert (result == NULL); /* <- FIXME if ever needed */
 #ifdef UNDER_CE
     CloseHandle (handle->cancel_event);
 #endif