CIRCT
20.0.0git
|
Background thread which services various requests. More...
#include <Accelerator.h>
Classes | |
struct | Impl |
Public Member Functions | |
AcceleratorServiceThread () | |
~AcceleratorServiceThread () | |
void | addListener (std::initializer_list< ReadChannelPort * > listenPorts, std::function< void(ReadChannelPort *, MessageData)> callback) |
When there's data on any of the listenPorts, call the callback. More... | |
void | addPoll (HWModule &module) |
Poll this module. More... | |
void | stop () |
Instruct the service thread to stop running. More... | |
Private Attributes | |
std::unique_ptr< Impl > | impl |
Background thread which services various requests.
Currently, it listens on ports and calls callbacks for incoming messages on said ports.
Definition at line 186 of file Accelerator.h.
AcceleratorServiceThread::AcceleratorServiceThread | ( | ) |
Definition at line 349 of file Accelerator.cpp.
References impl.
AcceleratorServiceThread::~AcceleratorServiceThread | ( | ) |
Definition at line 353 of file Accelerator.cpp.
References stop().
void AcceleratorServiceThread::addListener | ( | std::initializer_list< ReadChannelPort * > | listenPorts, |
std::function< void(ReadChannelPort *, MessageData)> | callback | ||
) |
When there's data on any of the listenPorts, call the callback.
Callable from any thread.
Definition at line 365 of file Accelerator.cpp.
void AcceleratorServiceThread::addPoll | ( | HWModule & | module | ) |
Poll this module.
Definition at line 372 of file Accelerator.cpp.
References assert(), impl, and esi::HWModule::poll().
void AcceleratorServiceThread::stop | ( | ) |
Instruct the service thread to stop running.
Definition at line 355 of file Accelerator.cpp.
References impl.
Referenced by ~AcceleratorServiceThread().
|
private |
Definition at line 205 of file Accelerator.h.
Referenced by AcceleratorServiceThread(), addListener(), addPoll(), and stop().