WebThreadWait Function

Action

Waits until all threads of the user are ready. This function is used to synchronize multiple threads.

Include file

WebAPI.bdh

Syntax

WebThreadWait( in nFlag: number optional ) : boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
nFlag

Flag used to specify the following additional option (optional):

  • WAIT_CLOSECONNECTIONS. Close all open connections, for example, if the Keep-Alive semantics is enabled

Example

dcltrans
  transaction TMain
  begin
    WebUrl("http://www.MyCompany.com");
    // do anything more
    ...
    WebThreadWait();
  end TMain;