Protecting Coders From Ourselves: Better Mutex Protection

At some point, if you’ve done multithreaded programming, you’ve probably used a mutex (or some other locking mechanism) . Locks are relatively straightforward to understand and use (“lock this thing before accessing your data and unlock it when you’re done”), but they do have their issues. The most commonly-discussed issue with using locks is the dreaded deadlock , scourge of many a poor soul who…