Sign in Join
FPDoc Onlineexperiment

SetThreadManager function

In unit System

Set the thread manager, optionally return the current thread manager.

Declaration

pascal
function SetThreadManager(const NewTM: TThreadManager; 
 out OldTM: TThreadManager): Boolean

Description

SetThreadManager sets the thread manager to NewTM. If OldTM is given, SetThreadManager uses it to return the previously used thread manager.

The function returns True if the threadmanager was set successfully, False if an error occurred.

For more information about thread programming, see the programmer's guide.

Errors

If an error occurred cleaning up the previous manager, or an error occurred initializing the new manager, False is returned.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.