Esempio n. 1
0
UTILSRUNTIME_API ITimer* Utils::Thread::CreateTimer(unsigned long millisec_interval, bool bEnable/* = true*/)
{
	IThread *pThread = Utils::Thread::GetCurrentThread();
	if (pThread == NULL)
		throw std::runtime_error("No thread object detected.");
	return pThread->NewTimer(millisec_interval, bEnable);
}