From d018b4c8219fcd23dfa44ccf6fb4e74f4d855eb2 Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Mon, 19 Jun 2023 18:24:11 -0400 Subject: [PATCH] Make this atomic. --- gpt4all-chat/chatllm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpt4all-chat/chatllm.h b/gpt4all-chat/chatllm.h index 67226d4e..736d29e4 100644 --- a/gpt4all-chat/chatllm.h +++ b/gpt4all-chat/chatllm.h @@ -157,7 +157,7 @@ protected: QThread m_llmThread; std::atomic m_stopGenerating; std::atomic m_shouldBeLoaded; - bool m_isRecalc; + std::atomic m_isRecalc; bool m_isServer; bool m_isChatGPT; };