Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/nodes/shmem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ int villas::node::shmem_write(NodeCompat *n, struct Sample *const smps[],
if (copied < avail)
n->logger->warn("Outgoing pool underrun");

/* signals is a heap shared_ptr; a reader in another process can't deref it */
for (int i = 0; i < copied; i++)
shared_smps[i]->signals.reset();

pushed = shmem_int_write(&shm->intf, shared_smps, copied);
if (pushed != avail)
n->logger->warn("Outgoing queue overrun for node");
Expand Down