Add teardown function for the event.c module

Also move the `job_teardown` call from os_unix.c to the event module
This commit is contained in:
Thiago de Arruda
2014-05-07 17:58:00 -03:00
parent 519fd1deb6
commit 17b275b23a
3 changed files with 7 additions and 1 deletions

View File

@@ -41,6 +41,11 @@ void event_init()
uv_prepare_init(uv_default_loop(), &timer_prepare);
}
void event_teardown()
{
job_teardown();
}
// Wait for some event
bool event_poll(int32_t ms)
{