Class tmsethread

Unit

Declaration

type tmsethread = class(TObject)

Description

Hierarchy

Overview

Fields

Protected finfo: threadinfoty;
Protected fthreadproc: threadprocty;
Protected fexecresult: integer;
Protected fstate: threadstatesty;
Protected fwaitforsem: semty;

Methods

Protected function internalthreadproc: integer;
Protected function getrunning: boolean;
Protected function getterminated: boolean;
Protected function getfreeonterminate: boolean;
Protected procedure setfreeonterminate(const avalue: boolean);
Protected function execute(thread: tmsethread): integer; virtual;
Protected procedure run(); virtual;
Public constructor create; overload;
Public constructor create(const afreeonterminate: boolean; const astacksizekb: integer = 0); overload;
Public constructor create(const athreadproc: threadprocty; const afreeonterminate: boolean = false; const astacksizekb: integer = 0); overload; virtual;
Public destructor destroy; override;
Public procedure afterconstruction; override;
Public function waitfor: integer; virtual;
Public procedure terminate; virtual;
Public procedure kill;

Properties

Public property running: boolean read getrunning;
Public property terminated: boolean read getterminated;
Public property id: threadty read finfo.id;
Public property freeonterminate: boolean read getfreeonterminate write setfreeonterminate;

Description

Fields

Protected finfo: threadinfoty;
 
Protected fthreadproc: threadprocty;
 
Protected fexecresult: integer;
 
Protected fstate: threadstatesty;
 
Protected fwaitforsem: semty;
 

Methods

Protected function internalthreadproc: integer;
 
Protected function getrunning: boolean;
 
Protected function getterminated: boolean;
 
Protected function getfreeonterminate: boolean;
 
Protected procedure setfreeonterminate(const avalue: boolean);
 
Protected function execute(thread: tmsethread): integer; virtual;
 
Protected procedure run(); virtual;
 
Public constructor create; overload;
 
Public constructor create(const afreeonterminate: boolean; const astacksizekb: integer = 0); overload;
 
Public constructor create(const athreadproc: threadprocty; const afreeonterminate: boolean = false; const astacksizekb: integer = 0); overload; virtual;
 
Public destructor destroy; override;
 
Public procedure afterconstruction; override;
 
Public function waitfor: integer; virtual;
 
Public procedure terminate; virtual;
 
Public procedure kill;
 

Properties

Public property running: boolean read getrunning;
 
Public property terminated: boolean read getterminated;
 
Public property id: threadty read finfo.id;
 
Public property freeonterminate: boolean read getfreeonterminate write setfreeonterminate;
 

Generated by PasDoc 0.16.0.