aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui_bridge.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-12-05 02:42:10 +0100
committerGitHub <noreply@github.com>2017-12-05 02:42:10 +0100
commit67848c0b916cc1b130bac975017f8e0c762ddc4c (patch)
tree9dc091bfc2548cfc9cd481b47e2df1d6e8e333b7 /src/nvim/ui_bridge.c
parenta494c999189200c36786f7c453c5c316244da0d1 (diff)
parent2d4abc1caedf67487e100f5cef5eca78da68b3e7 (diff)
downloadrneovim-67848c0b916cc1b130bac975017f8e0c762ddc4c.tar.gz
rneovim-67848c0b916cc1b130bac975017f8e0c762ddc4c.tar.bz2
rneovim-67848c0b916cc1b130bac975017f8e0c762ddc4c.zip
Merge #7653 from justinmk/tui-termcap
Diffstat (limited to 'src/nvim/ui_bridge.c')
-rw-r--r--src/nvim/ui_bridge.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/ui_bridge.c b/src/nvim/ui_bridge.c
index 5585886612..7573fa1653 100644
--- a/src/nvim/ui_bridge.c
+++ b/src/nvim/ui_bridge.c
@@ -82,6 +82,7 @@ UI *ui_bridge_attach(UI *ui, ui_main_fn ui_main, event_scheduler scheduler)
abort();
}
+ // Suspend the main thread until CONTINUE is called by the UI thread.
while (!rv->ready) {
uv_cond_wait(&rv->cond, &rv->mutex);
}
@@ -149,7 +150,7 @@ static void ui_bridge_suspend(UI *b)
uv_mutex_lock(&data->mutex);
UI_BRIDGE_CALL(b, suspend, 1, b);
data->ready = false;
- // suspend the main thread until CONTINUE is called by the UI thread
+ // Suspend the main thread until CONTINUE is called by the UI thread.
while (!data->ready) {
uv_cond_wait(&data->cond, &data->mutex);
}