mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
lint
This commit is contained in:
1 parent
fcf67504d0
commit
0b317a34da
1 file changed
+5
-1
@@ -243,7 +243,11 @@ void MainThreadInterface::DispatchMessages() {
|
||||
bool expected = false;
|
||||
// compare_exchange_strong returns true if the value was successfully changed
|
||||
// from false to true.
|
||||
if (dispatching_messages_.compare_exchange_strong(expected, true, std::memory_order_acquire, std::memory_order_relaxed)) {
|
||||
if (dispatching_messages_.compare_exchange_strong(
|
||||
expected,
|
||||
true,
|
||||
std::memory_order_acquire,
|
||||
std::memory_order_relaxed)) {
|
||||
bool had_messages = false;
|
||||
do {
|
||||
if (dispatching_message_queue_.empty()) {
|
||||
|
||||
Reference in new issue
Block a user