Ignore:
Timestamp:
Apr 14, 2011, 12:47:57 PM (13 years ago)
Author:
george
Message:
  • Modified: MicroThreading replaced by TListedThread classic thread implementation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • PinConnection/USerialPort.pas

    r163 r231  
    66
    77uses
    8   Classes, SysUtils, SynaSer, StdCtrls, Dialogs, UCommon, UMicroThreading,
     8  Classes, SysUtils, SynaSer, StdCtrls, Dialogs, UCommon, UThreading,
    99  DateUtils;
    1010
     
    2323  { TSerialPortReceiveThread }
    2424
    25   TSerialPortReceiveThread = class(TMicroThread)
     25  TSerialPortReceiveThread = class(TListedThread)
    2626  public
    2727    Parent: TSerialPort;
     
    292292  InBufferUsed := 0;
    293293  with Parent do repeat
    294       if InBufferUsed = 0 then MTSleep(1 * OneMillisecond)
    295         else Yield;
     294      if InBufferUsed = 0 then Sleep(1);
     295        //else Yield;
    296296      if Active then begin
    297297        InBufferUsed := WaitingData;
Note: See TracChangeset for help on using the changeset viewer.