mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-20 18:06:14 -05:00
Move calls to thread_setname() into the thread start routines and move to a single argument thread_setname()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user