1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00
VILLASnode/etc/examples/nodes/shmem.conf
Alexandra b39e4a0ace feat: new smu node-type
Signed-off-by: Alexandra <alexandra.bach@eonerc.rwth-aachen.de>
2025-01-14 14:42:39 +00:00

28 lines
862 B
Text

# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0
nodes = {
shmem_node = {
type = "shmem",
in = {
# Name of shared memory segment for receiving side
name = "sn1_in"
},
out = {
# Name of shared memory segment for sending side
name = "sn1_in"
},
# Length of the queues
queuelen = 1024,
# We can busy-wait or use pthread condition variables for synchronizations
mode = "pthread",
# Execute an external process when starting the node which
# then starts the other side of this shared memory channel
# Usually we also pass the shmem names as parameters
exec = [ "villas-shmem", "sn1_in", "sn1_out" ]
}
}