Changeset 231 for PinConnection/UCommSocket.pas
- Timestamp:
- Apr 14, 2011, 12:47:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
PinConnection/UCommSocket.pas
r163 r231 6 6 7 7 uses 8 Classes, SysUtils, blcksock, UCommPin, UCommon, U MicroThreading,8 Classes, SysUtils, blcksock, UCommPin, UCommon, UThreading, 9 9 DateUtils; 10 10 … … 16 16 { TCommSocketReceiveThread } 17 17 18 TCommSocketReceiveThread = class(T MicroThread)18 TCommSocketReceiveThread = class(TListedThread) 19 19 public 20 20 Parent: TCommSocket; … … 94 94 InBufferUsed := 0; 95 95 with Parent do repeat 96 if InBufferUsed = 0 then MTSleep(1 * OneMillisecond)97 else Yield;96 if InBufferUsed = 0 then Sleep(1); 97 //else Yield; 98 98 if Assigned(Socket) then 99 99 with Socket do
Note:
See TracChangeset
for help on using the changeset viewer.