mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
use better name for worker thread functions
This commit is contained in:
parent
9f3d806755
commit
cc3292974f
2 changed files with 5 additions and 5 deletions
|
@ -31,7 +31,7 @@
|
|||
#include "compat.h"
|
||||
|
||||
/* Forward declarations */
|
||||
static void * worker(void *ctx);
|
||||
static void * api_worker(void *ctx);
|
||||
|
||||
int api_ws_protocol_cb(struct lws *wsi, enum lws_callback_reasons reason, void *user, void *in, size_t len)
|
||||
{
|
||||
|
@ -250,7 +250,7 @@ int api_start(struct api *a)
|
|||
|
||||
info("Starting API sub-system");
|
||||
|
||||
ret = pthread_create(&a->thread, NULL, worker, a);
|
||||
ret = pthread_create(&a->thread, NULL, api_worker, a);
|
||||
if (ret)
|
||||
error("Failed to start API worker thread");
|
||||
|
||||
|
@ -290,7 +290,7 @@ int api_stop(struct api *a)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void * worker(void *ctx)
|
||||
static void * api_worker(void *ctx)
|
||||
{
|
||||
int pulled;
|
||||
|
||||
|
|
|
@ -144,7 +144,7 @@ static void logger(int level, const char *msg) {
|
|||
}
|
||||
}
|
||||
|
||||
static void * worker(void *ctx)
|
||||
static void * web_worker(void *ctx)
|
||||
{
|
||||
struct web *w = ctx;
|
||||
|
||||
|
@ -244,7 +244,7 @@ int web_start(struct web *w)
|
|||
error("WebSocket: failed to initialize server");
|
||||
}
|
||||
|
||||
ret = pthread_create(&w->thread, NULL, worker, w);
|
||||
ret = pthread_create(&w->thread, NULL, web_worker, w);
|
||||
if (ret)
|
||||
error("Failed to start Web worker thread");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue