diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-04-30 16:01:32 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-04-30 16:01:32 +0300 |
commit | 1379690841d68fe8b220104eb13780fb353503b3 (patch) | |
tree | 622e874ab6a9067f44cc519116210f8d6b86909b /src | |
parent | 757f98a5805a91c34f70bf090c01e6a9be235716 (diff) | |
download | wydawca-1379690841d68fe8b220104eb13780fb353503b3.tar.gz wydawca-1379690841d68fe8b220104eb13780fb353503b3.tar.bz2 |
Revise the triplet names. Update the docs.
Diffstat (limited to 'src')
-rw-r--r-- | src/net.c | 6 | ||||
-rw-r--r-- | src/timer.c | 2 | ||||
-rw-r--r-- | src/triplet.c | 4 |
3 files changed, 6 insertions, 6 deletions
@@ -233,7 +233,7 @@ void * wy_thr_tcpmux(void *ptr) { struct wydawca_connection *conn = ptr; - wy_set_cur_thread_name("tcpmux"); + wy_set_cur_thread_name("WY_tcpmux"); pthread_cleanup_push((void (*)(void*))connection_stop, conn); setlinebuf(conn->fp); handle_connection(conn); @@ -244,7 +244,7 @@ wy_thr_tcpmux(void *ptr) void * wy_thr_connection_watcher(void *ptr) { - wy_set_cur_thread_name("connwatch"); + wy_set_cur_thread_name("WY_connwatch"); pthread_mutex_lock(&conn_mutex); while (1) { struct wydawca_connection *conn; @@ -283,7 +283,7 @@ wy_thr_listen(void *ptr) int wfd = watcher_init(); int maxfd = 0; - wy_set_cur_thread_name("listener"); + wy_set_cur_thread_name("WY_listener"); if (ctlfd != -1) { pthread_t tid; diff --git a/src/timer.c b/src/timer.c index e9ceaad..2cf3c24 100644 --- a/src/timer.c +++ b/src/timer.c @@ -263,7 +263,7 @@ struct micronent stat_report_schedule; void * wy_thr_stat(void *ptr) { - wy_set_cur_thread_name("statcol"); + wy_set_cur_thread_name("WY_stat"); pthread_mutex_lock(&global_stats_mutex); /* export the thread's specific stats and timer pointers to wydawca_global_stats and wydawca_global_stats. */ diff --git a/src/triplet.c b/src/triplet.c index f1c5b6f..627931e 100644 --- a/src/triplet.c +++ b/src/triplet.c @@ -475,7 +475,7 @@ triplet_expired_p(struct wy_triplet *trp) void * wy_thr_cleaner(void *ptr) { - wy_set_cur_thread_name("tricleaner"); + wy_set_cur_thread_name("WY_tricleaner"); triplet_list_lock(&triplet_pending_list); while (1) { if (!TAILQ_EMPTY(&triplet_pending_list.head)) { @@ -514,7 +514,7 @@ void * wy_thr_triplet(void *ptr) { struct wy_triplet *trp = ptr; - wy_set_cur_thread_name("triplet"); + wy_set_cur_thread_name("WY_triplet"); triplet_commit(trp); wydawca_stat_update(); remove_triplet(trp); |