impr: Increase performance when updating task progress
This commit is contained in:
parent
de4ea4081a
commit
74e246feed
@ -83,9 +83,9 @@ namespace hex {
|
||||
}
|
||||
|
||||
void Task::update(u64 value) {
|
||||
this->m_currValue = value;
|
||||
this->m_currValue.store(value, std::memory_order_relaxed);
|
||||
|
||||
if (this->m_shouldInterrupt) [[unlikely]]
|
||||
if (this->m_shouldInterrupt.load(std::memory_order_relaxed)) [[unlikely]]
|
||||
throw TaskInterruptor();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user