I heard I should use the C function - CreateThread() to create thread.
I have a graphics program that draws some animations. How can I add
another thread to do other stuff like file processing -OR- internet
query?
Then where can I find tutorial on writing win32 threading code?
any books suggestion? any sample code?
following is my main program
=====================
#include "ofMain.h"
#include "testApp.h"
int main( ){
ofSetupOpenGL(1024,768, OF_WINDOW); //
<-------- setup the GL context
// this kicks off the running of my app
// can be OF_WINDOW or OF_FULLSCREEN
// pass in width and height too:
ofRunApp(new testApp());
}
I have a graphics program that draws some animations. How can I add
another thread to do other stuff like file processing -OR- internet
query?
Then where can I find tutorial on writing win32 threading code?
any books suggestion? any sample code?
following is my main program
=====================
#include "ofMain.h"
#include "testApp.h"
int main( ){
ofSetupOpenGL(1024,768, OF_WINDOW); //
<-------- setup the GL context
// this kicks off the running of my app
// can be OF_WINDOW or OF_FULLSCREEN
// pass in width and height too:
ofRunApp(new testApp());
}