Style nit (sorry, I should have caught this earlier): Add a using for System.Threading, and then define these without the namespace.