Browse Source

TT#14008 convert threads_join_all arg to bool

Change-Id: Ie1ef9bbfe6faaf9fa7ed163d51475f6f353309df
pull/1388/head
Richard Fuchs 4 years ago
parent
commit
d3a3382ac9
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      daemon/aux.c
  2. +2
    -2
      daemon/main.c
  3. +1
    -1
      include/aux.h

+ 1
- 1
daemon/aux.c View File

@ -133,7 +133,7 @@ static gint thread_equal(gconstpointer a, gconstpointer b) {
return !pthread_equal(*x, *y);
}
void threads_join_all(int wait) {
void threads_join_all(bool wait) {
pthread_t *t;
GList *l;


+ 2
- 2
daemon/main.c View File

@ -1254,7 +1254,7 @@ int main(int argc, char **argv) {
while (!rtpe_shutdown) {
usleep(100000);
threads_join_all(0);
threads_join_all(false);
}
// free libevent
@ -1270,7 +1270,7 @@ int main(int argc, char **argv) {
if (!is_addr_unspecified(&rtpe_config.redis_ep.address) && rtpe_redis_notify)
redis_async_event_base_action(rtpe_redis_notify, EVENT_BASE_LOOPBREAK);
threads_join_all(1);
threads_join_all(true);
if (!is_addr_unspecified(&rtpe_config.redis_ep.address) && initial_rtpe_config.redis_delete_async)
redis_async_event_base_action(rtpe_redis_write, EVENT_BASE_FREE);


+ 1
- 1
include/aux.h View File

@ -343,7 +343,7 @@ struct thread_waker {
void thread_waker_add(struct thread_waker *);
void thread_waker_del(struct thread_waker *);
void threads_join_all(int);
void threads_join_all(bool);
void thread_create_detach_prio(void (*)(void *), void *, const char *, int, const char *);
INLINE void thread_create_detach(void (*f)(void *), void *a, const char *name) {
thread_create_detach_prio(f, a, NULL, 0, name);


Loading…
Cancel
Save