Skip to content

Commit cf98e54

Browse files
author
SergioMartin86
committed
Compatibilizing for C++17
1 parent d81635f commit cf98e54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/hicr/frontends/tasking/worker.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ class Worker
392392
if (_callbackMap != nullptr) _callbackMap->trigger(this, callback_t::onWorkerTaskPulled);
393393

394394
// If a task was returned, then start or execute it
395-
if (_currentTask != nullptr) [[likely]]
395+
if (_currentTask != nullptr)
396396
{
397397
// If the task hasn't been initialized yet, we need to do it now
398398
if (_currentTask->getState() == HiCR::ExecutionState::state_t::uninitialized)
@@ -409,7 +409,7 @@ class Worker
409409
}
410410

411411
// Requesting processing units to terminate as soon as possible
412-
if (_state == state_t::suspending) [[unlikely]]
412+
if (_state == state_t::suspending)
413413
{
414414
// Setting state as suspended
415415
_state = state_t::suspended;
@@ -434,7 +434,7 @@ class Worker
434434
}
435435

436436
// Requesting processing units to terminate as soon as possible
437-
if (_state == state_t::terminating) [[unlikely]]
437+
if (_state == state_t::terminating)
438438
{
439439
// Calling appropriate callback
440440
if (_callbackMap != nullptr) _callbackMap->trigger(this, callback_t::onWorkerTerminate);

0 commit comments

Comments
 (0)