summaryrefslogtreecommitdiff
path: root/lsp.h
diff options
context:
space:
mode:
Diffstat (limited to 'lsp.h')
-rw-r--r--lsp.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lsp.h b/lsp.h
index 61c5610..5d5fc1b 100644
--- a/lsp.h
+++ b/lsp.h
@@ -557,7 +557,10 @@ typedef struct LSP {
// has the response to the initialize request been sent?
// thread-safety: this starts out false, and only gets set to true once
// (when the initialize response is received)
- bool initialized;
+ _Atomic bool initialized;
+ // has the LSP server exited?
+ // thread-safety: only set to false once when the process dies
+ _Atomic bool died;
// thread-safety: only set once in lsp_create.
char *command;
// this is set in lsp_create, then later set to NULL when we send over the configuration (after the initialized notification).