Using ofEasyCam in ofThread for calculating positions

Hi,

I’m currently busy with making a small engine for an iOS app i’m busy with. I want to check if the faces are within the viewport. For that I must calculate the worldToScreen from easyCam. I’m using easyCam as an pointer and start the thread

 for(int verticleIndex=0;verticleIndex<verticles.size(); verticleIndex++)
{

        for(int x=0; x< verticles[verticleIndex].size(); x++)
        {
            ofPoint pt = cam->worldToScreen(verticles[verticleIndex][x]);
            screenVerticles[verticleIndex][x]= pt;
        }
    }
}

If I run this from update, it works correctly. But when I use it from the thread it starts flickering or it doesn’t work at all in a thread. At frist i thought it could only calculate after cam.end() but that doesn’t work neither.