Changeset 231 for PinConnection/UPacketBurst.pas
- Timestamp:
- Apr 14, 2011, 12:47:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
PinConnection/UPacketBurst.pas
r171 r231 7 7 uses 8 8 Classes, UCommPin, SyncObjs, UStreamHelper, UCommon, SysUtils, 9 UMicroThreading,DateUtils;9 DateUtils; 10 10 11 11 type 12 12 TPacketBurst = class; 13 13 14 TPacketBurstSendThread = class(T MicroThread)14 TPacketBurstSendThread = class(TThread) 15 15 PacketBurst: TPacketBurst; 16 16 procedure Execute; override; … … 22 22 private 23 23 FActive: Boolean; 24 SendThreadEvent: T MicroThreadEvent;24 SendThreadEvent: TEvent; 25 25 SendThread: TPacketBurstSendThread; 26 26 SendStreamLock: TCriticalSection; … … 31 31 procedure SetActive(const AValue: Boolean); 32 32 public 33 SendPeriod: TDateTime;33 SendPeriod: Integer; 34 34 SendBurstSize: Integer; 35 35 PacketSinglePin: TCommPin; … … 50 50 PacketBurstPin := TCommPin.Create; 51 51 PacketBurstPin.OnReceive := PacketBurstReceive; 52 SendThreadEvent := T MicroThreadEvent.Create;53 SendPeriod := OneMillisecond;52 SendThreadEvent := TSimpleEvent.Create; 53 SendPeriod := 1; 54 54 end; 55 55 … … 93 93 SendThread.FreeOnTerminate := False; 94 94 SendThread.PacketBurst := Self; 95 SendThread.Name := 'PacketBurst';95 //SendThread.Name := 'PacketBurst'; 96 96 SendThread.Start; 97 97 end else begin
Note:
See TracChangeset
for help on using the changeset viewer.