A pattern for obtaining a single value while holding a lock (via lcapaldo) — discussion

#c++