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/UCommSocket.pas

    r163 r231  
    66
    77uses
    8   Classes, SysUtils, blcksock, UCommPin, UCommon, UMicroThreading,
     8  Classes, SysUtils, blcksock, UCommPin, UCommon, UThreading,
    99  DateUtils;
    1010
     
    1616  { TCommSocketReceiveThread }
    1717
    18   TCommSocketReceiveThread = class(TMicroThread)
     18  TCommSocketReceiveThread = class(TListedThread)
    1919  public
    2020    Parent: TCommSocket;
     
    9494  InBufferUsed := 0;
    9595  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;
    9898      if Assigned(Socket) then
    9999      with Socket do
Note: See TracChangeset for help on using the changeset viewer.