mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 02:55:49 +03:00
LibPthread: Mark the pthread_cond_t "waiting" flag as volatile
Oops, this is not gonna work if the compiler can optimize out all the reads from this flag. :^)
This commit is contained in:
parent
96e8c8a4e5
commit
e7dfd40dc3
Notes:
sideshowbarker
2024-07-19 10:56:19 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/e7dfd40dc37
@ -388,7 +388,7 @@ int pthread_setschedparam(pthread_t thread, int policy, const struct sched_param
|
||||
}
|
||||
|
||||
struct WaitNode : public InlineLinkedListNode<WaitNode> {
|
||||
bool waiting { true };
|
||||
volatile bool waiting { true };
|
||||
WaitNode* m_next { nullptr };
|
||||
WaitNode* m_prev { nullptr };
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user