Skip to content

Commit

Permalink
Fix std::memory_order according to changes in C++20
Browse files Browse the repository at this point in the history
The new code should be compatible with C++17 as well
  • Loading branch information
alxbilger committed Oct 22, 2024
1 parent 1d9f613 commit cdb9036
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void DefaultTaskScheduler::WaitForWorkersToBeReady()

void DefaultTaskScheduler::setMainTaskStatus(const Task::Status* mainTaskStatus)
{
m_mainTaskStatus.store(mainTaskStatus, std::memory_order::memory_order_relaxed);
m_mainTaskStatus.store(mainTaskStatus, std::memory_order_relaxed);
}

bool DefaultTaskScheduler::testMainTaskStatus(const Task::Status* status)
Expand Down

0 comments on commit cdb9036

Please sign in to comment.