We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa6fe05 commit fa5c478Copy full SHA for fa5c478
include/CodeFormatServer/Session/IOSession.h
@@ -1,6 +1,7 @@
1
#pragma once
2
#include <string>
3
#include <thread>
4
+#include <atomic>
5
#include "asio/io_context.hpp"
6
#include "CodeFormatServer/LanguageService.h"
7
#include "CodeFormatServer/Protocol/ProtocolBuffer.h"
@@ -23,7 +24,7 @@ class IOSession
23
24
std::shared_ptr<std::jthread> _logicThread;
25
#else
26
std::shared_ptr<std::thread> _logicThread = nullptr;
- volatile bool _running = true;
27
+ std::atomic<bool> _running = true;
28
#endif
29
30
};
0 commit comments