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.
- Parameters:
- max_simultaneous_copies (defaults to
"1"
)
call_adp_break_p (defaults to"0"
)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.