Class tmsethread
Unit
Declaration
type tmsethread = class(TObject)
Description
Hierarchy
- TObject
- tmsethread
Overview
Fields
finfo: threadinfoty; |
|
fthreadproc: threadprocty; |
|
fexecresult: integer; |
|
fstate: threadstatesty; |
|
fwaitforsem: semty; |
Methods
function internalthreadproc: integer; |
|
function getrunning: boolean; |
|
function getterminated: boolean; |
|
function getfreeonterminate: boolean; |
|
procedure setfreeonterminate(const avalue: boolean); |
|
function execute(thread: tmsethread): integer; virtual; |
|
procedure run(); virtual; |
|
constructor create; overload; |
|
constructor create(const afreeonterminate: boolean; const astacksizekb: integer = 0); overload; |
|
constructor create(const athreadproc: threadprocty; const afreeonterminate: boolean = false; const astacksizekb: integer = 0); overload; virtual; |
|
destructor destroy; override; |
|
procedure afterconstruction; override; |
|
function waitfor: integer; virtual; |
|
procedure terminate; virtual; |
|
procedure kill; |
Properties
property running: boolean read getrunning; |
|
property terminated: boolean read getterminated; |
|
property id: threadty read finfo.id; |
|
property freeonterminate: boolean read getfreeonterminate
write setfreeonterminate; |
Description
Fields
finfo: threadinfoty; |
|
fthreadproc: threadprocty; |
|
fexecresult: integer; |
|
fstate: threadstatesty; |
|
fwaitforsem: semty; |
|
Methods
function internalthreadproc: integer; |
|
function getrunning: boolean; |
|
function getterminated: boolean; |
|
function getfreeonterminate: boolean; |
|
procedure setfreeonterminate(const avalue: boolean); |
|
function execute(thread: tmsethread): integer; virtual; |
|
procedure run(); virtual; |
|
constructor create; overload; |
|
constructor create(const afreeonterminate: boolean; const astacksizekb: integer = 0); overload; |
|
constructor create(const athreadproc: threadprocty; const afreeonterminate: boolean = false; const astacksizekb: integer = 0); overload; virtual; |
|
destructor destroy; override; |
|
procedure afterconstruction; override; |
|
function waitfor: integer; virtual; |
|
procedure terminate; virtual; |
|
procedure kill; |
|
Properties
property running: boolean read getrunning; |
|
property terminated: boolean read getterminated; |
|
property id: threadty read finfo.id; |
|
property freeonterminate: boolean read getfreeonterminate
write setfreeonterminate; |
|
Generated by PasDoc 0.16.0.