DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
WorkerThread.hpp File Reference
#include "ers/ers.hpp"
#include "logging/Logging.hpp"
#include <functional>
#include <future>
#include <list>
#include <memory>
#include <string>
Include dependency graph for WorkerThread.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  dunedaq
 Including Qt Headers.
 

Functions

 dunedaq::ERS_DECLARE_ISSUE (utilities, ThreadingIssue, "Threading Issue detected: "<< err,((std::string) err)) namespace utilities
 An ERS Issue raised when a threading state error occurs.
 

Detailed Description

WorkerThread class declarations

WorkerThread defines a std::thread which runs the do_work() function as well as methods to start and stop that thread. This file is intended to help reduce code duplication for the common task of starting and stopping threads. As in artdaq, std::thread may be replaced by boost::thread to allow setting the stack size at a later date if that functionality is found to be necessary.

This is part of the DUNE DAQ Application Framework, copyright 2020. Licensing/copyright details are in the COPYING file that you should have received with this code.

Definition in file WorkerThread.hpp.