dfx 0.1.0
Linux-based dynamic dataflow executor
Loading...
Searching...
No Matches
dfx::Pcapng::Worker::SinkData Struct Reference

Sink storage and "new sink" marker for hot swapping. More...

#include <dfx-pcapng/Worker.hpp>

Collaboration diagram for dfx::Pcapng::Worker::SinkData:
[legend]

Public Attributes

SinkPtr sink
 <
std::atomic_bool isNew {false}
 True if this sink was just installed/replaced and must be handled by the worker thread.

Detailed Description

Sink storage and "new sink" marker for hot swapping.

Sink setters may be called from non-worker threads. The sink pointer is updated under a mutex, and isNew is set so the worker thread can perform any required initialization/transition in a controlled context.

Member Data Documentation

◆ isNew

std::atomic_bool dfx::Pcapng::Worker::SinkData::isNew {false}

True if this sink was just installed/replaced and must be handled by the worker thread.

◆ sink

SinkPtr dfx::Pcapng::Worker::SinkData::sink

<

Active sink instance (optional).


The documentation for this struct was generated from the following file: