encapsulated function constructor import Modelica; extends Modelica.Icons.Function; import Modelica_DeviceDrivers.Communication.SharedMemory; input String memoryName; input Integer bufferSize = 16*1024; input Boolean cleanup = true "true, unlink shared memory at process termination, otherwise no unlink ⇒ 'memoryID' can still be opened (Linux specific, otherwise no effect)"; output SharedMemory sm; end constructor;