1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

loopback: add auto mode

This commit is contained in:
Steffen Vogel 2018-10-20 18:47:21 +02:00
parent 6670139439
commit 52fd9e09e5

View file

@ -46,7 +46,9 @@ int loopback_parse(struct node *n, json_t *cfg)
jerror(&err, "Failed to parse configuration of node %s", node_name(n));
if (mode_str) {
if (!strcmp(mode_str, "eventfd"))
if (!strcmp(mode_str, "auto"))
l->queueflags = QUEUE_SIGNALLED_AUTO;
else if (!strcmp(mode_str, "eventfd"))
l->queueflags = QUEUE_SIGNALLED_EVENTFD;
else if (!strcmp(mode_str, "pthread"))
l->queueflags = QUEUE_SIGNALLED_PTHREAD;