aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-02-26 11:03:39 +0100
committerbfredl <bjorn.linse@gmail.com>2022-02-26 15:00:13 +0100
commit850b3e19c9fc8d84d960e6932a9ad4f0bcad2a8e (patch)
treee39bc72d137cd8a0863881b675fe83df6969b047 /src/nvim/os
parentacf38245d8961125f02d4c4168053e0d83dbc6df (diff)
downloadrneovim-850b3e19c9fc8d84d960e6932a9ad4f0bcad2a8e.tar.gz
rneovim-850b3e19c9fc8d84d960e6932a9ad4f0bcad2a8e.tar.bz2
rneovim-850b3e19c9fc8d84d960e6932a9ad4f0bcad2a8e.zip
refactor(lua): cleanup and docs for threads
Diffstat (limited to 'src/nvim/os')
-rw-r--r--src/nvim/os/fs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c
index cca76e175d..daf974ee74 100644
--- a/src/nvim/os/fs.c
+++ b/src/nvim/os/fs.c
@@ -64,6 +64,9 @@ void fs_init(void)
uv_mutex_init_recursive(&fs_loop_mutex);
}
+/// TODO(bfredl): some of these operations should
+/// be possible to do the private libuv loop of the
+/// thread, instead of contending the global fs loop
void fs_loop_lock(void)
{
uv_mutex_lock(&fs_loop_mutex);