Changeset 231 for PinConnection/USerialPort.pas
- Timestamp:
- Apr 14, 2011, 12:47:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
PinConnection/USerialPort.pas
r163 r231 6 6 7 7 uses 8 Classes, SysUtils, SynaSer, StdCtrls, Dialogs, UCommon, U MicroThreading,8 Classes, SysUtils, SynaSer, StdCtrls, Dialogs, UCommon, UThreading, 9 9 DateUtils; 10 10 … … 23 23 { TSerialPortReceiveThread } 24 24 25 TSerialPortReceiveThread = class(T MicroThread)25 TSerialPortReceiveThread = class(TListedThread) 26 26 public 27 27 Parent: TSerialPort; … … 292 292 InBufferUsed := 0; 293 293 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; 296 296 if Active then begin 297 297 InBufferUsed := WaitingData;
Note:
See TracChangeset
for help on using the changeset viewer.