
7 Apr
2009
7 Apr
'09
6:30 p.m.
Emil Dotchevski wrote:
I am against such a move. Boost Threads requires linking for other features which makes it one of the few libraries in Boost that can be properly designed to avoid unnecessary physical coupling. Unless something is proven to cause performance problems it should not be inlined, regardless of how simple it is.
I don't see your point. AFAIK, mutexes do not require any features that have to reside in a separately compiled library. And forcing them to depend on it discourages from using Boost.Thread in header-only libraries (those in Boost and outside of it) and justifies things like lightweight_mutex.