QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Must exit PtMainLoop() |
Ref. No. |
QNX.000009796 |
Category(ies) |
Development |
Issue |
We are porting some very complicated C++ code and it requires exiting PtMainLoop.
How do we do this?
Code after PtMainLoop() must run.
|
Solution |
Here is a sample code:
x09void PtMyLoop(void){ x09x09for(;;); x09x09PtProcessEvent(); x09} Sometimes, it gets complicated with the contents of PtProcessEvent()...traditionally, PhAB comes with its main loop code that has all the contents of PtProcessEvent() in it-and often is out of date. The problem with that code is that it must know things about the widget library's internal structures, and those structures change from having their own main loop... |
|