internal NetMessageStatsArgs( ManualResetEvent eventComplete, NetMessageStatsProc sendProc, double deltaThreshold, bool txStats, bool rxStats, bool reset, bool queueLength ) { EventComplete = eventComplete; SendProc = sendProc; DeltaThreshold = deltaThreshold; TxStats = txStats; RxStats = rxStats; Reset = reset; QueueLength = queueLength; }
private ManualResetEvent NetBeginStatsMessages( NetMessageStatsProc messageStatsProc, double deltaThreshold, bool txStats, bool rxStats, bool reset, bool queueLength) { ManualResetEvent EventMessagesComplete = new ManualResetEvent(false); NetMessageStatsArgs args = new NetMessageStatsArgs(EventMessagesComplete, messageStatsProc, deltaThreshold, txStats, rxStats, reset, queueLength); Thread NetMessageStatsThread = new Thread(NetMessageStatsThreadProc); NetMessageStatsThread.Start(args); return EventMessagesComplete; }