Boost logo

Boost Users :

Subject: [Boost-users] [Thread][win32, msvc] Mutexes
From: Alexander Gutenev (gutenev_at_[hidden])
Date: 2008-09-27 15:39:32


Hi

I consider changing from win32 CRITICAL_SECTIONs to Boost.Thread mutexes.

boost::mutex isn't CRITICAL_SECTION, but boost::detail::lightweight_mutex
is. Does this mean that boost::mutex is heavy-weight ?

If so, what's the reason for heavy-weight implementation which has the same
capabilities that lightweight CRITICAL_SECTION has ?

If not so, what's the reason for boost::detail::lightweight_mutex to exist ?

Thanks.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net