diff options
author | pommicket <pommicket@gmail.com> | 2023-01-02 14:22:10 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-02 14:22:10 -0500 |
commit | 9278c63caff34a8c264416705a5658ee0b5210ef (patch) | |
tree | f3d3e6f8cc077e33348cc0a1ea7c1938848403d4 /lsp.h | |
parent | f791aa01fad7e81223808584212c6a1a4c80ca07 (diff) |
fix tcc build problems
Diffstat (limited to 'lsp.h')
-rw-r--r-- | lsp.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,3 +1,6 @@ +// functions for dealing with LSP (Language Server Protocol) servers. +// don't assume any of the public functions defined here are thread-safe. + #ifndef LSP_H_ #define LSP_H_ @@ -515,9 +518,9 @@ typedef struct LSP { // this also lets us re-send requests if that's ever necessary. LSPRequest *requests_sent; // has the response to the initialize request been sent? - // thread-safety: this is atomic. it starts out false, and only gets set to true once + // thread-safety: this starts out false, and only gets set to true once // (when the initialize response is received) - _Atomic bool initialized; + bool initialized; // thread-safety: only set once in lsp_create. Language language; LSPThread communication_thread; |