Added resumable loading, along with signal handling.
This version can store state after receiving SIGINT. This is achieved by polling FIFO read state;
This commit is contained in:
16
Controller.hpp
Normal file
16
Controller.hpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
#include <map>
|
||||
#include "Channel.hpp"
|
||||
|
||||
class Controller
|
||||
{
|
||||
protected:
|
||||
std::map<uint32_t, Channel> channels;
|
||||
uint32_t currChannel;
|
||||
|
||||
public:
|
||||
Controller(const uint32_t startChannel = 1);
|
||||
|
||||
void handleTransaction();
|
||||
const uint32_t nextChannel();
|
||||
};
|
||||
Reference in New Issue
Block a user