Commit b7119d26 authored by Xavier Thompson's avatar Xavier Thompson

Rename Scheduler::resume into Scheduler::enable

parent b8212774
......@@ -45,7 +45,7 @@ namespace typon
auto state = _state.exchange(ready, std::memory_order_acq_rel);
if (state != no_waiter)
{
Scheduler::resume(reinterpret_cast<WorkDeque *>(state));
Scheduler::enable(reinterpret_cast<WorkDeque *>(state));
}
}
......@@ -60,7 +60,7 @@ namespace typon
auto state = reinterpret_cast<std::uintptr_t>(deque);
if (_state.exchange(state, std::memory_order_acq_rel) == ready)
{
Scheduler::resume(deque);
Scheduler::enable(deque);
}
}
......@@ -92,7 +92,7 @@ namespace typon
auto state = _state.exchange(ready, std::memory_order_acq_rel);
if (state != no_waiter)
{
Scheduler::resume(reinterpret_cast<WorkDeque *>(state));
Scheduler::enable(reinterpret_cast<WorkDeque *>(state));
}
}
......@@ -107,7 +107,7 @@ namespace typon
auto state = reinterpret_cast<std::uintptr_t>(deque);
if (_state.exchange(state, std::memory_order_acq_rel) == ready)
{
Scheduler::resume(deque);
Scheduler::enable(deque);
}
}
......@@ -133,7 +133,7 @@ namespace typon
auto state = _state.exchange(ready, std::memory_order_acq_rel);
if (state != no_waiter)
{
Scheduler::resume(reinterpret_cast<WorkDeque *>(state));
Scheduler::enable(reinterpret_cast<WorkDeque *>(state));
}
}
......@@ -148,7 +148,7 @@ namespace typon
auto state = reinterpret_cast<std::uintptr_t>(deque);
if (_state.exchange(state, std::memory_order_acq_rel) == ready)
{
Scheduler::resume(deque);
Scheduler::enable(deque);
}
}
......@@ -172,7 +172,7 @@ namespace typon
auto state = _state.exchange(ready, std::memory_order_acq_rel);
if (state != no_waiter)
{
Scheduler::resume(reinterpret_cast<WorkDeque *>(state));
Scheduler::enable(reinterpret_cast<WorkDeque *>(state));
}
}
......@@ -187,7 +187,7 @@ namespace typon
auto state = reinterpret_cast<std::uintptr_t>(deque);
if (_state.exchange(state, std::memory_order_acq_rel) == ready)
{
Scheduler::resume(deque);
Scheduler::enable(deque);
}
}
......
......@@ -84,7 +84,7 @@ namespace typon
return deque;
}
static void resume(WorkDeque * deque) noexcept
static void enable(WorkDeque * deque) noexcept
{
deque->_resumable.store(true);
get()._notifyer.notify_one();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment