The Microsoft.VisualStudio.Threading is a xplat library that provides many threading and synchronization primitives used in Visual Studio and other applications.
An easy library for Python file locking. It works on Windows, Linux, BSD and Unix systems and can even perform distributed locking. Naturally it also supports the with statement.
A lock-free, thread-safe wrapper for atomically publishing and reading a string reference. Designed for shared, mutable string state with minimal allocations, supporting fast reads and safe one-time or racing initialization without locks.