Add a dispatcher for the alarm event
authorKevin Klues <klueska@cs.berkeley.edu>
Fri, 30 May 2014 23:23:42 +0000 (16:23 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Fri, 30 May 2014 23:23:42 +0000 (16:23 -0700)
commit240bf40d937843bd0d17ed0fa81a096ac9719a30
tree376662e55f238bde94cb1a865f1af76fa681f00e
parentdcf19681c986db0a0b20e9f7c0b1c083a2cab5f1
Add a dispatcher for the alarm event

Every event has only a single event handler registered for it in the
ev_handlers array.  The alarm dispatcher sets ev_handler[EV_ALARM] to a
dispatcher function, which dispatches alarm events to registered
handlers keyed by alarmid.

This component ws built mostly in preparation for the addition of a
per-vcore alarm service that will need this dispatching functionality.
user/benchutil/alarm.c
user/benchutil/alarm_dispatch.c [new file with mode: 0644]
user/benchutil/include/alarm_dispatch.h [new file with mode: 0644]