Yeah, as far as I know. I commented out as much as possible ending up with the following code, which still produces the error/bug.
Code:
bool RenderSingleBucket(unsigned int threadId)
{
float r = Math::RandFloat();
float g = Math::RandFloat();
float b = Math::RandFloat();
return true;
}
int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow)
{
std::srand(100);
boost::thread_group threads;
for(unsigned int i = 0; i < 8; i++)
{
boost::thread* t=new boost::thread(&RenderSingleBucket, i);
threads.add_thread(t);
}
threads.join_all();
return 1;
}