void WorkItem::enqueue(std::unique_ptr<Treadmill::WorkItem> gt) { GenCount time = getTime(); { GenCountGuard g; gt->m_gen = correctTime(time); s_tq.emplace_back(std::move(gt)); } }
void enqueueInternal(std::unique_ptr<WorkItem> gt) { GenCount time = getTime(); { GenCountGuard g; gt->m_gen = correctTime(time); s_tq.emplace_back(std::move(gt)); } }
void enqueueInternal(std::unique_ptr<WorkItem> gt) { if (PendingTriggers::s_destroyed) { return; } GenCount time = getTime(); { GenCountGuard g; gt->m_gen = correctTime(time); s_tq.emplace_back(std::move(gt)); } }