Browse Source

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

git.mgm/mediaproxy-ng/2.1
Richard Fuchs 14 years ago
parent
commit
47a9a00a11
3 changed files with 5 additions and 7 deletions
  1. +3
    -3
      daemon/aux.c
  2. +1
    -1
      daemon/aux.h
  3. +1
    -3
      daemon/main.c

+ 3
- 3
daemon/aux.c View File

@ -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));


+ 1
- 1
daemon/aux.h View File

@ -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 *);


+ 1
- 3
daemon/main.c View File

@ -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