Explore generic locking techniques in C++ with Andrei Alexandrescu in this comprehensive conference talk. Delve into lock-based synchronization for multithreaded programs, examining the advantages of multiple readers/single writer locks and C++1x STL container guarantees. Discover the folly/Synchronized library, which offers reliable encapsulated locking for generic types, addressing common issues like races and deadlocks. Cover topics including volatiles, multithreading, encapsulation, implementation, synchronous builds, cycle detection, synchronized pipes, locking pointers, and advanced synchronization techniques. Learn about rookie mistakes to avoid, synchronized statements, macro tricks, and Facebook's dot-arrow magic macro for synchronization.