rem: OSGThreadManager *gThreadManager = OSGThreadManager::the();
add: ThreadManager *gThreadManager = ThreadManager::the();
context: int main(int argc, char **argv){    OSGUInt32 j;    fprintf(stderr, "Thread test started %x\n", thread_routine);    osgInit(argc, argv);    OSGThreadManager *gThreadManager = OSGThreadManager::the();//	pthread_key_create(&saved_time_key, free_time);    pLock = gThreadManager->getLock(NULL);    for(OSGUInt32 i = 0; i < NUM_THREADS; i++)    {        gThreads[i] = gThreadManager->getThread(NULL);        gLocalId[i] = i;        if(gThreads[i] != NULL)        {            gThreads[i]->print();            gThreads[i]->run(thread_routine,                             1,                             (void *) &(gLocalId[i]));        }        else        {            fprintf(stderr, "Thread %d create failed\n", i);        }    }    osg_sleep(2000);    for(j = 0; j < NUM_THREADS; j++)    {		fprintf(stderr, "Unblock for %d\n", j);        gThreads[j]->unblock();    }    for(j = 0; j < NUM_THREADS; j++)    {		fprintf(stderr, "Wait for %d\n", j);        OSGThread::join(gThreads[j]);    }    fprintf(stderr, "Thread test finished\n");}