Esempio n. 1
0
void
OpScopeProfiler::HandleCallback(OpMessage msg, MH_PARAM_1 par1, MH_PARAM_2 par2)
{
	if (msg == MSG_SCOPE_PROCESS_TIMELINE)
	{
		unsigned async_tag = static_cast<unsigned>(par1);

		AsyncTask *task = async_tasks.First();

		while (task && task->GetAsyncTag() != async_tag)
			task = task->Suc();

		if (task)
			RAISE_IF_MEMORY_ERROR(PerformTask(task));
	}
}
Esempio n. 2
0
RpcServerManager::~RpcServerManager()
{
    Kill();
    PerformTask();
}