Exemple #1
0
//static
void LLCommon::initClass()
{
	LLMemory::initClass();
	if (!sAprInitialized)
	{
		ll_init_apr();
		sAprInitialized = TRUE;
	}
	LLTimer::initClass();
	LLThreadSafeRefCount::initThreadSafeRefCount();
	assert_main_thread();		// Make sure we record the main thread
	if (!sMasterThreadRecorder)
	{
		sMasterThreadRecorder = new LLTrace::ThreadRecorder();
		LLTrace::set_master_thread_recorder(sMasterThreadRecorder);
	}
}
Exemple #2
0
	void ensure_main_thread() {
		if (!assert_main_thread()) throw exception_wrong_thread();
	}