mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
519fd1deb6
commit
17b275b23a
@ -41,6 +41,11 @@ void event_init()
|
|||||||
uv_prepare_init(uv_default_loop(), &timer_prepare);
|
uv_prepare_init(uv_default_loop(), &timer_prepare);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void event_teardown()
|
||||||
|
{
|
||||||
|
job_teardown();
|
||||||
|
}
|
||||||
|
|
||||||
// Wait for some event
|
// Wait for some event
|
||||||
bool event_poll(int32_t ms)
|
bool event_poll(int32_t ms)
|
||||||
{
|
{
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
#include "os/job_defs.h"
|
#include "os/job_defs.h"
|
||||||
|
|
||||||
void event_init(void);
|
void event_init(void);
|
||||||
|
void event_teardown(void);
|
||||||
bool event_poll(int32_t ms);
|
bool event_poll(int32_t ms);
|
||||||
bool event_is_pending(void);
|
bool event_is_pending(void);
|
||||||
void event_push(Event event);
|
void event_push(Event event);
|
||||||
|
@ -581,7 +581,7 @@ void mch_exit(int r)
|
|||||||
{
|
{
|
||||||
exiting = TRUE;
|
exiting = TRUE;
|
||||||
|
|
||||||
job_teardown();
|
event_teardown();
|
||||||
|
|
||||||
{
|
{
|
||||||
settmode(TMODE_COOK);
|
settmode(TMODE_COOK);
|
||||||
|
Loading…
Reference in New Issue
Block a user