mortoray/quantlib — comment on commit dbf6b23429b21cccb0982d6f3e5c13f5860842e1
File: ql/patterns/singleton.cpp line 5
By lballabio:

If possible, I'd put the lock-related code in an `#ifdef` block so that it's not used at all when `QL_ENABLE_SESSIONS` is not defined.
This way, we remove the requirement of linking to libboost_thread if we're not interested in it.