CIRCT 21.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. | |
void | addPoll (HWModule &module) |
Poll this module. | |
void | stop () |
Instruct the service thread to stop running. | |
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 203 of file Accelerator.h.
AcceleratorServiceThread::AcceleratorServiceThread | ( | ) |
Definition at line 378 of file Accelerator.cpp.
References impl.
AcceleratorServiceThread::~AcceleratorServiceThread | ( | ) |
Definition at line 382 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 394 of file Accelerator.cpp.
void AcceleratorServiceThread::addPoll | ( | HWModule & | module | ) |
void AcceleratorServiceThread::stop | ( | ) |
Instruct the service thread to stop running.
Definition at line 384 of file Accelerator.cpp.
References impl.
Referenced by ~AcceleratorServiceThread().
|
private |
Definition at line 222 of file Accelerator.h.
Referenced by AcceleratorServiceThread(), addListener(), addPoll(), and stop().