13d4108fea
Several users of the signal API used custom convenience classes to invoke signal-handling functions on the reception of incoming signals. The 'Signal_dispatcher' pattern turned out to be particularly useful. To avoid the duplication of this code across the code base, this patch adds the interface to 'base/signal.h'. Furthermore, the patch changes the 'Signal::num()' return type from int to unsigned because negative numbers are meaningless here. Fixes #511 |
||
---|---|---|
.. | ||
arm/platform | ||
input | ||
nic | ||
signal | ||
storage | ||
x86_32/platform | ||
dummies.c | ||
lx_emul.cc | ||
lx_emul.h | ||
main.cc | ||
mem.h | ||
pci_driver.cc | ||
platform.h | ||
routine.h | ||
signal.h | ||
target.mk | ||
test.cc |