Example #1
0
bool EventLoopThreadPool::Start(uint threadCount, const StringRef& pollerName)
{
	HeapString threadName;
	FOR_EACH_SIZE(i, threadCount)
	{
		threadName.Format("EventLoopThread-{}", i);
		EventLoopThread* thread = new EventLoopThread(threadName, pollerName);
		mThreads.Add(thread);
		thread->Start();
	}
Example #2
0
HeapString Matrix3::ToString() const
{
	/*
	[11,12,13]	
	[21,22,23]	
	[31,32,33]	
	*/

	HeapString result;
	result.Format("[{},{},{}]\n[{},{},{}]\n[{},{},{}]",M11,M12,M13,M21,M22,M23,M31,M32,M33);
	return result;
}