Monthly Archives: May 2007

Generic CountdownLatch Synchronization Primitive

The CountdownLatch can be a very useful synchronization primitive for certain threading jobs. Here is my generic version that calls a generic Action<T> after latch reaches zero. using System;using System.Collections.Generic;using System.Text;using System.Threading;using System.Diagnostics; namespace WJS.Threading{    /// <summary>    /// CountdownLatch is … Continue reading

Posted in Uncategorized | 7 Comments

Use Win Form in a VS Team Test library

  This may be common knowledge, but I just discovered it. Test projects in VS Team Test are class libraries. Normally you write tests like a console app, with no UI. You just test api results and test results with … Continue reading

Posted in Uncategorized | 3 Comments