summaryrefslogtreecommitdiff
path: root/src/buffer_utils.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2024-11-22 13:47:08 +1100
committerMaxime Coste <mawww@kakoune.org>2024-11-22 13:51:09 +1100
commit9358c62bf2c26f5604ddffb7b41d55ff89a9e51f (patch)
tree5dc1ecf8e149749f3cac71dc8c599cb155795b14 /src/buffer_utils.cc
parente74a3ac6a3bad1b74af71aa0bfdacb41ffcb7355 (diff)
Take a timeout argument in EventManager::handle_next_events
When provided, this gives the maximal time to wait before exiting handle_next_events. If not given handle_next_events will block, this provides a more flexible approach than the previous "block" boolean. Use this to wait for a millisecond between each try to open a fifo for writing. Fixes the 100% cpu usage discussed in github on commit e74a3ac6a3bad1b74af71aa0bfdacb41ffcb7355
Diffstat (limited to 'src/buffer_utils.cc')
0 files changed, 0 insertions, 0 deletions