Name threads

This commit is contained in:
Martin Pulec
2019-05-03 09:12:11 +02:00
parent 1828d44da5
commit 7db96528cf
13 changed files with 172 additions and 2 deletions

View File

@@ -51,6 +51,7 @@
#include "config_win32.h"
#endif // HAVE_CONFIG_H
#include "utils/thread.h"
#include "utils/worker.h"
#include <algorithm>
@@ -123,6 +124,7 @@ struct wp_worker {
};
void *wp_worker::enter_loop(void *args) {
set_thread_name("worker");
wp_worker *instance = (wp_worker *) args;
instance->run();