it makes no sense to return a value from an effectively detached thread

remotes/origin/2.0
Richard Fuchs 13 years ago
parent c5aa1e33f4
commit c8c2928cef

@ -18,8 +18,8 @@
struct detach_thread {
GThreadFunc func;
gpointer data;
void (*func)(void *);
void *data;
};
@ -145,7 +145,7 @@ static gpointer thread_detach_func(gpointer d) {
return NULL;
}
void thread_create_detach(GThreadFunc f, gpointer d) {
void thread_create_detach(void (*f)(void *), void *d) {
struct detach_thread *dt;
dt = g_slice_alloc(sizeof(*dt));

@ -198,7 +198,7 @@ typedef GCond cond_t;
void thread_join_me();
void threads_join_all();
void thread_create_detach(GThreadFunc, gpointer);
void thread_create_detach(void (*)(void *), void *);

@ -59,7 +59,7 @@ static char *b2b_url;
gpointer sighandler(gpointer x) {
static void sighandler(gpointer x) {
sigset_t ss;
int ret;
struct timespec ts;
@ -87,8 +87,6 @@ gpointer sighandler(gpointer x) {
else
abort();
}
return NULL;
}

Loading…
Cancel
Save