WebSetMaxThreads Function

Action

Sets the upper limit of possible concurrent threads. Setting this limit to 1 lets the functions execute synchronously.

Include file

WebAPI.bdh

Syntax

WebSetMaxThreads(in nMaxThreads: number): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
nMaxThreads Maximum number of possible concurrent threads; this number is limited to 32.

Example

dcltrans
transaction TWebInit
begin
  WebSetMaxThreads(4);
  WebDumpSettings();
end TWebInit;

Sample scripts

WebMulti01.bdf