diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-11-02 16:37:08 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-11-02 16:47:50 -0300 |
commit | a1dd70b1d0e9ef155c81eeb249f137e763482d10 (patch) | |
tree | d80bf394168eb84f6eaf3630d091a40cf2b9e379 /test/functional/shell/viml_system_spec.lua | |
parent | e378965a4483881c3f737eed5c3d24cb1f305a62 (diff) | |
download | rneovim-a1dd70b1d0e9ef155c81eeb249f137e763482d10.tar.gz rneovim-a1dd70b1d0e9ef155c81eeb249f137e763482d10.tar.bz2 rneovim-a1dd70b1d0e9ef155c81eeb249f137e763482d10.zip |
event: Reintroduce the immediate event queue
Commit @264e0d872c("Remove automatic event deferral") removed the immediate
event queue because event deferral now had to be explicit. The problem is that
while some events don't need to be deferred, they still can result in recursive
`event_poll` calls, and recursion is not supported by libuv. Examples of those
are msgpack-rpc requests while a server->client request is pending, or signals
which can call `mch_exit`(and that will result in `uv_run` calls).
To fix the problem, this reintroduces the immediate event queue for events that
can potentially result in event loop recursion. The non-deferred events are
still processed in `event_poll`, but only after `uv_run` returns.
Diffstat (limited to 'test/functional/shell/viml_system_spec.lua')
0 files changed, 0 insertions, 0 deletions