help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'System' (#rtl)

SetThreadManager

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

Declaration

Source position: line 0

function SetThreadManager(

  const NewTM: TThreadManager;

  var OldTM: TThreadManager

):Boolean;

function SetThreadManager(

  const NewTM: 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 succesfully, 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

GetThreadManager

  

Return the current thread manager

TThreadManager

  

Thread manager record.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505