Super-Simple-Tasker icon indicating copy to clipboard operation
Super-Simple-Tasker copied to clipboard

Signal implementation

Open Xeenych opened this issue 8 months ago • 1 comments

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

Xeenych avatar Oct 06 '23 18:10 Xeenych