Software TSN Switch
A software switch to connect VMs and Containers to a TSN network
Loading...
Searching...
No Matches
Public Attributes | List of all members
cnc::NodeWorker Struct Reference

Worker structure for managing NETCONF sessions and job queues for individual nodes. More...

#include <NetworkManager.h>

Collaboration diagram for cnc::NodeWorker:
Collaboration graph

Public Attributes

std::shared_ptr< common::NetconfSession > opsSession
 
std::shared_ptr< common::NetconfSession > notifSession
 
std::thread workerThread
 
std::queue< std::function< void()> > jobQueue
 
std::mutex queueMutex
 
std::condition_variable cv
 
bool stop = false
 
const size_t MAX_QUEUE_SIZE = 10
 

Detailed Description

Worker structure for managing NETCONF sessions and job queues for individual nodes.

Member Data Documentation

◆ cv

std::condition_variable cnc::NodeWorker::cv

◆ jobQueue

std::queue<std::function<void()> > cnc::NodeWorker::jobQueue

◆ MAX_QUEUE_SIZE

const size_t cnc::NodeWorker::MAX_QUEUE_SIZE = 10

◆ notifSession

std::shared_ptr<common::NetconfSession> cnc::NodeWorker::notifSession

◆ opsSession

std::shared_ptr<common::NetconfSession> cnc::NodeWorker::opsSession

◆ queueMutex

std::mutex cnc::NodeWorker::queueMutex

◆ stop

bool cnc::NodeWorker::stop = false

◆ workerThread

std::thread cnc::NodeWorker::workerThread

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