OSG创建渲染线程的过程
图形渲染线程是静态函数,为:
static unsigned int __stdcall StartThread(void *data)
它是在int Thread::start()中被调用:
int Thread::start()
{
pd->tid.set( (void*)_beginthreadex(NULL,pd->stackSize,ThreadPrivateActions::StartThread,static_cast<void *>(this),0,&ID));
。。。
}
int ViewerBase::run()
{
if (!isRealized())
{
realize();
}
if( ){
while (!