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

Legend:

Unmodified
Added
Removed
  • PinConnection/UCommSerialPort.pas

    r171 r231  
    66
    77uses
    8   Classes, USerialPort, UCommPin, SysUtils, UMicroThreading, DateUtils,
     8  Classes, USerialPort, UCommPin, SysUtils, DateUtils,
    99  SyncObjs;
    1010
     
    1515    procedure ReceiveData(Stream: TMemoryStream);
    1616  public
    17     Lock: TMicroThreadCriticalSection;
     17    Lock: TCriticalSection;
    1818    Pin: TCommPin;
    1919    destructor Destroy; override;
     
    3535begin
    3636  inherited;
    37   Lock := TMicroThreadCriticalSection.Create;
     37  Lock := TCriticalSection.Create;
    3838  Pin := TCommPin.Create;
    3939  Pin.OnReceive := Receive;
     
    6060    end;
    6161    if Stream.Position <> Stream.Size then
    62       MTSleep(1 * OneMillisecond);
     62      Sleep(1);
    6363  until Stream.Position = Stream.Size;
    6464end;
Note: See TracChangeset for help on using the changeset viewer.