public override void Run()
{
bool success = false;
try
{
if (_latch != null) _latch.Wait();
// see the part in checkRandomData where it replays the same text again
// to verify reproducability/reuse: hopefully this would catch thread hazards.
OuterInstance.CheckRandomData(new Random((int)Seed), a, Iterations, MaxWordLength, UseCharFilter, Simple, OffsetsAreCorrect, Iw);
success = true;
}
catch (Exception e)
{
Console.WriteLine("Exception in Thread: " + e);
throw;
}
finally
{
Failed = !success;
}
}
}