Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title PtSpawn vs QNX spawn benefits?
Ref. No. QNX.000005099
Category(ies) Development
Issue I need to call a Photon application (acting as a modal application) from another running Photon application. We read all the documentation but we couldn't detect the benefits of using PtSpawn versus Spawn. Any suggestions?
Solution The biggest benefit is that it is portable to Neutrino.  Also, PtSpawn() gives you more flexibility with notification of the parent, attaching a callback on termination, etc.  The third major benefit is that it uses a background handler which will allow damaged widgets to automatically be updated.