Ejemplo n.º 1
0
void Schedule::Queue()
{
	MojLogTrace(s_log);
	MojLogInfo(s_log, _T("[Activity %llu] Queueing with Scheduler"),
		m_activity.lock()->GetId());

	if (IsQueued())
		UnQueue();

	CalcNextStartTime();

	m_scheduled = false;
	m_scheduler->AddItem(shared_from_this());
}
Ejemplo n.º 2
0
void Schedule::Queue()
{
	LOG_AM_TRACE("Entering function %s", __FUNCTION__);
	LOG_AM_DEBUG("[Activity %llu] Queueing with Scheduler",
		m_activity.lock()->GetId());

	if (IsQueued())
		UnQueue();

	CalcNextStartTime();

	m_scheduled = false;
	m_scheduler->AddItem(shared_from_this());
}