Super-Simple-Tasker
Super-Simple-Tasker copied to clipboard
Signal implementation
Signal is implemented now as uint16_t.
So you need a big switch in dispatch() function to handle each signal and downcast<> template.
Signal could be implemented as function pointer void(*)()
or even as a struct
struct {
void (*)(void*) func;
void* arg;
}
thus dispatch function will need to just call func(arg) without need to handle big switch operator