Move calls to thread_setname() into the thread start routines and move to a single argument thread_setname()

This commit is contained in:
Brad Keifer
2025-11-09 18:52:35 +11:00
parent 28528abbcd
commit 9c8728f10f
14 changed files with 22 additions and 22 deletions

View File

@@ -46,6 +46,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <event2/thread.h>
#include "evthr.h"
#include "misc.h"
#ifndef TAILQ_FOREACH_SAFE
#define TAILQ_FOREACH_SAFE(var, head, field, tvar) \
@@ -135,6 +136,7 @@ _evthr_loop(void *args)
pthread_exit(NULL);
}
thread_setname("evthr");
thread->evbase = event_base_new();
thread->event = event_new(thread->evbase, thread->rdr,
EV_READ | EV_PERSIST, _evthr_read_cmd, args);