PtModalUnblock()

Stop a modal loop

Synopsis:

int PtModalUnblock( PtModalCtrl_t *ctrl,
                    void *result );

Library:

ph

Description:

PtModalUnblock() causes the corresponding PtModalBlock() call to return the value passed to the result argument. If you call PtModalUnblock() more than once before PtModalBlock() returns, only the first call matters; don't call PtModalUnblock() after PtModalBlock() has returned.

Returns:

0
Success.
-1
An error occurred.

Examples:

See PtModalBlock().

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtModalBlock(), PtModalEnd(), PtModalStart(), PtProcessEvent()

Modal dialogs in the Window Management chapter of the Photon Programmer's Guide