AcquisitionDevice: Completion queue is handled by particular implementation of the device
This commit is contained in:
@@ -135,7 +135,7 @@ void HLSSimulatedDevice::HW_WriteActionRegister(const ActionConfig *job) {
|
||||
memcpy(&cfg, job, sizeof(ActionConfig));
|
||||
}
|
||||
|
||||
void HLSSimulatedDevice::HW_StartAction() {
|
||||
void HLSSimulatedDevice::FPGA_StartAction() {
|
||||
if (action_thread.joinable())
|
||||
action_thread.join();
|
||||
|
||||
@@ -145,6 +145,11 @@ void HLSSimulatedDevice::HW_StartAction() {
|
||||
action_thread = std::thread(&HLSSimulatedDevice::HLSMainThread, this );
|
||||
}
|
||||
|
||||
void HLSSimulatedDevice::FPGA_EndAction() {
|
||||
if (action_thread.joinable())
|
||||
action_thread.join();
|
||||
}
|
||||
|
||||
HLSSimulatedDevice::~HLSSimulatedDevice() {
|
||||
if (action_thread.joinable())
|
||||
action_thread.join();
|
||||
|
||||
Reference in New Issue
Block a user