diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-26 16:35:24 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-26 18:30:18 -0300 |
commit | 452804638d4b7a25082990bbce31f64911d58b3d (patch) | |
tree | 41487c599a6e87c6b17299d195a2a3813626ce32 /src/os_unix.h | |
parent | f8432ef127c0d84bc89ef604dfd6b619acd89c3b (diff) | |
download | rneovim-452804638d4b7a25082990bbce31f64911d58b3d.tar.gz rneovim-452804638d4b7a25082990bbce31f64911d58b3d.tar.bz2 rneovim-452804638d4b7a25082990bbce31f64911d58b3d.zip |
Reimplement input functions on top of libuv
The functions `mch_inchar`, `mch_breakcheck`, `mch_char_avail` were
reimplemented on top of libuv. Here's how it works:
- When Neovim needs to wait for characters, it will transfer control to libuv
event loop.
- When the libuv event loop gets user input, it will transfer control back to
Neovim
- Neovim uses the `input_read` function to get the actual data read by libuv.
With this scheme its possible to keep Neovim single-threaded while enjoying the
benefits provided by libuv.
This commit leaves SIGWINCH broken for now
Diffstat (limited to 'src/os_unix.h')
-rw-r--r-- | src/os_unix.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/os_unix.h b/src/os_unix.h index 456276fee3..ad7fa85ccb 100644 --- a/src/os_unix.h +++ b/src/os_unix.h @@ -2,8 +2,6 @@ #define NEOVIM_OS_UNIX_H /* os_unix.c */ void mch_write(char_u *s, int len); -int mch_inchar(char_u *buf, int maxlen, long wtime, int tb_change_cnt); -int mch_char_avail(void); void mch_startjmp(void); void mch_endjmp(void); void mch_didjmp(void); @@ -45,7 +43,6 @@ int mch_get_shellsize(void); void mch_set_shellsize(void); void mch_new_shellsize(void); int mch_call_shell(char_u *cmd, int options); -void mch_breakcheck(void); int mch_expandpath(garray_T *gap, char_u *path, int flags); int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file, char_u ***file, |