Home
The Toolkit for Online Communities
13553 Community Members, 0 members online, 1842 visitors today
Log In Register

ad_return_if_another_copy_is_running

OpenACS Home : ACS API Browser : ad_return_if_another_copy_is_running

ad_return_if_another_copy_is_running (public)

ad_return_if_another_copy_is_running [ max_simultaneous_copies ] \
    [ call_adp_break_p ]
Defined in packages/acs-tcl/tcl/defs-procs.tcl

Returns a page to the user about how this server is busy if another copy of the same script is running. Then terminates execution of the thread. Useful for expensive pages that do sequential searches through database tables, etc. You don't want to tie up all of your database handles and deny service to everyone else. The call_adp_break_p argument is essential if you are calling this from an ADP page and want to avoid the performance hit of continuing to parse and run. This proc is dangerous, and needs to be rewritten. See: http://openacs.org/forums/message-view?message_id=203381

Parameters:
max_simultaneous_copies (defaults to "1")
call_adp_break_p (defaults to "0")
[ show source ]
Show another procedure: