Changeset 231 for PinConnection/UCommSerialPort.pas
- Timestamp:
- Apr 14, 2011, 12:47:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
PinConnection/UCommSerialPort.pas
r171 r231 6 6 7 7 uses 8 Classes, USerialPort, UCommPin, SysUtils, UMicroThreading,DateUtils,8 Classes, USerialPort, UCommPin, SysUtils, DateUtils, 9 9 SyncObjs; 10 10 … … 15 15 procedure ReceiveData(Stream: TMemoryStream); 16 16 public 17 Lock: T MicroThreadCriticalSection;17 Lock: TCriticalSection; 18 18 Pin: TCommPin; 19 19 destructor Destroy; override; … … 35 35 begin 36 36 inherited; 37 Lock := T MicroThreadCriticalSection.Create;37 Lock := TCriticalSection.Create; 38 38 Pin := TCommPin.Create; 39 39 Pin.OnReceive := Receive; … … 60 60 end; 61 61 if Stream.Position <> Stream.Size then 62 MTSleep(1 * OneMillisecond);62 Sleep(1); 63 63 until Stream.Position = Stream.Size; 64 64 end;
Note:
See TracChangeset
for help on using the changeset viewer.