I'm running into a bit of trouble figuring out how to use std::thread. I'm pretty sure I have it set up right, the issue is that when I go to compile, the separate thread seems to block the rest of the initialization of my app and I just see a white screen.
I'm basically setting it up like so
// called in setup()
mThread = shared_ptr<thread>(new thread(bind(&Cube::update, this)));
In my threaded function
// do stuff here for infinity
I don't need to be in sync with what OpenGL is doing I'm just trying to shift some math calculations over to another thread. Any ideas for why I'm running into problem?