Warning:  main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptallowexit.html on line 1
Warning:  main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptallowexit.html on line 1
Warning:  main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptallowexit.html on line 8
Warning:  main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptallowexit.html on line 8
Allow a Photon application to exit
void PtAllowExit( void );
ph
  PtAllowExit() lets
Photon know that it's safe to exit your application. 
In a multithreaded application, any thread can call PtExit(), but another
thread might be in the middle of an important operation, such as writing
a file. To prevent this situation from arising, call PtPreventExit() before
starting the operation, and call PtAllowExit() when it's
done. 
  | 
Instead of calling PtPreventExit() and PtAllowExit() directly,
you're better off calling PtEnter() and PtLeave() with Pt_DELAY_EXIT set
in the flags. For a discussion of the difference between these functions
and using Pt_DELAY_EXIT, see “Exiting a multithreaded program” in
the Parallel Operations chapter of the Photon Programmer's
Guide. | 
 
Photon
| Safety: |  | 
| Interrupt handler | 
    No | 
| Signal handler | 
    No | 
| Thread | 
    Yes | 
PtEnter(), PtExit(), PtLeave(), PtPreventExit() 
Parallel Operations chapter
of the Photon Programmer's Guide
Warning:  main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptallowexit.html on line 98
Warning:  main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptallowexit.html on line 98