2019-03-22 13:49:07 +01:00
|
|
|
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2023-08-31 11:25:01 +02:00
|
|
|
|
2019-03-22 13:49:07 +01:00
|
|
|
nodes = {
|
|
|
|
shmem_node = {
|
|
|
|
type = "shmem",
|
|
|
|
|
|
|
|
in = {
|
|
|
|
name = "sn1_in"
|
|
|
|
}, # Name of shared memory segment for receiving side
|
|
|
|
out = {
|
|
|
|
name = "sn1_in" # Name of shared memory segment for sending side
|
|
|
|
},
|
|
|
|
|
|
|
|
queuelen = 1024, # Length of the queues
|
|
|
|
mode = "pthread", # We can busy-wait or use pthread condition variables for synchronizations
|
|
|
|
|
|
|
|
# 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" ]
|
|
|
|
}
|
|
|
|
}
|