void CaptureThread()
{
_device.NonBlockingMode = true; // Without that it's very, very slow
for (; ; )
{
try
{
RawCapture packet = _device.GetNextPacket();
if (packet != null)
OnPacketArrival(packet);
else
System.Threading.Thread.Sleep(10); // NonBlockingMode, we need to slow the overhead
}
catch { return; } // closed interface sure !
}
}