I’m working on a Photon application which is multi-threaded, and I’m having
trouble with the event loop. In the first thread, I do the following. Note
that this is NOT the thread which called PtInit().
flags = PtEnter(Pt_EVENT_PROCESS_ALLOW);
The second thread makes the PtInit() call and sets up the application
widgets. It also tries to stop the event loop once it’s time to quit, by
doing the following.
flags = PtEnter(0);
What happens is that the second thread completes its call to
PtQuitMainLoop(), but the first thread never exits out of PtMainLoop(). I
don’t want to call PtExit() from the second thread since I need to do some
Is PtQuitMainLoop() guaranteed to force PtMainLoop() to return? Or are
there some caveats? Any suggestions about alternatives would be welcome.
I’m new to Photon programming, and I’m not using Phab.