[Previous] [Contents] [Index] [Next]

PtSyncPhoton()

Synchronize Photon

Synopsis:

void PtSyncPhoton();

Description:

This function forces a flush of the current draw buffer and then disposes of the memory used by any destroyed widgets. This ensures that:


Note: This is normally done for you in the standard event-processing loop. Most applications don't need to call PtSyncPhoton() explicitly; it's of particular importance to applications that modify or destroy widgets associated with a work or input process.

Never call PtSyncPhoton() in the callback of a widget that you've destroyed.


Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtAppAddWorkProc(), PtAppAddInput()


[Previous] [Contents] [Index] [Next]