Delphi中的线程类--之(1)[6]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 raptor 的 blog

    procedure doterminate; virtual;

    procedure execute; virtual; abstract;

    procedure synchronize(method: tthreadmethod); overload;

    property returnvalue: integer read freturnvalue write freturnvalue;

    property terminated: boolean read fterminated;

  public

    constructor create(createsuspended: boolean);

    destructor destroy; override;

    procedure afterconstruction; override;

    procedure resume;

    procedure suspend;

    procedure terminate;

    function waitfor: longword;

    class procedure synchronize(athread: tthread; amethod: tthreadmethod); overload;

    class procedure staticsynchronize(athread: tthread; amethod: tthreadmethod);

    property fatalexception: tobject read ffatalexception;

    property freeonterminate: boolean read ffreeonterminate write ffreeonterminate;

    property handle: thandle read fhandle;

本文关键:Thread Event CriticalSection Synchronize
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top