From: Sebastian B. <sb...@us...> - 2013-12-07 20:19:09
|
Update of /cvsroot/simplemail/simplemail/gtk In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv24752/gtk Modified Files: subthreads.c Log Message: API sync. Index: subthreads.c =================================================================== RCS file: /cvsroot/simplemail/simplemail/gtk/subthreads.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- subthreads.c 22 Jan 2004 21:59:25 -0000 1.9 +++ subthreads.c 7 Dec 2013 20:19:07 -0000 1.10 @@ -129,7 +129,7 @@ input_added = 1; } - if ((g_thread_create(entry,udata,TRUE,NULL))) + if ((g_thread_create((GThreadFunc)entry,udata,TRUE,NULL))) { g_mutex_lock(thread_mutex); g_cond_wait(thread_cond,thread_mutex); @@ -183,8 +183,9 @@ Waits until aborted and calls timer_callback periodically. It's possible to execute functions on the threads context while in this function. **************************************************************************/ -void thread_wait(void (*timer_callback(void*)), void *timer_data, int millis) +int thread_wait(void (*timer_callback(void*)), void *timer_data, int millis) { + return 0; } /************************************************************************** @@ -198,7 +199,7 @@ } -int thread_call_parent_function_sync(void *function, int argcount, ...) +int thread_call_parent_function_sync(int *success, void *function, int argcount, ...) { struct ipc_message msg; va_list argptr; @@ -276,7 +277,10 @@ if (sem) { if (!(sem->mutex = g_mutex_new())) + { + free(sem); return NULL; + } } return sem; } |