diff --git a/Libraries/LibPthread/pthread.cpp b/Libraries/LibPthread/pthread.cpp index 8e553b59ae8..246e2abdc5e 100644 --- a/Libraries/LibPthread/pthread.cpp +++ b/Libraries/LibPthread/pthread.cpp @@ -388,7 +388,7 @@ int pthread_setschedparam(pthread_t thread, int policy, const struct sched_param } struct WaitNode : public InlineLinkedListNode { - bool waiting { true }; + volatile bool waiting { true }; WaitNode* m_next { nullptr }; WaitNode* m_prev { nullptr }; };