Boost logo

Boost :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2003-10-18 11:43:45


[2003-10-18] Christophe Meessen wrote:

>Hello,
>
>using boost threads with vc7.1 is not easy. It doesn't provide support
>for static library. I had to make a VC7.1 project to be able to compile
>it. I hacked out the on_thread_exit since there is no trivial solution
>for this on win32. Its ok for now since I don't use tss.
>
>I then compared the performance of using scoped_lock with using the
>native win32 critical section calls. To my surprise scoped_lock is tree
>time slower than native win32 calls. Then I tried implementing my own
>scope_lock without support for lock methods. I named this class
>synschronize and mutex was named synchronizable. You may see the code
below.

Your code is basically identical to that provided by
boost::detail::lightweight_mutex. See boost/detail/lightweight_mutex*.hpp

[snip]

-- grafik - Don't Assume Anything
-- rrivera (at) acm.org - grafik (at) redshift-software.com
-- 102708583 (at) icq


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk