Using the AutoResetEvent class to wake multiple threads in C#.

“I’ve been waiting for you, Obi Wan.” – Darth Vader. One of the big differences between a ManualResetEvent and an AutoResetEvent (WaitHandles) in the .NET Framework is that a ManualResetEvent can wake up multiple waiting threads, whilst an AutoResetEvent can only wake up one of the waiting threads. When set/triggered, the ManualResetEvent stays in that state […]

LIFX Firmware Update v1.5.

“I can’t talk right now, I have several thousand updates to install.” – Sheldon Cooper (referring to Windows 98). I recently picked up another LIFX light bulb (see my original post here). As always, the first thing to do after taking it out the box is to run the firmware update program from LIFX. The […]