Boost logo

Threads-Devel :

Subject: Re: [Threads-devel] upgrade_to_unique_lock broken on gcc 4.3.2 with c++0x mode enabled
From: Anthony Williams (anthony_at_[hidden])
Date: 2009-02-21 06:22:27


At Tue 17 Feb 2009 22:02:11 UTC, Ein Held <mrhelt_at_[hidden]> wrote:

> #include <boost/thread/shared_mutex.hpp>
> #include <boost/thread/locks.hpp>
> using namespace boost;
>
> static void foo()
> {
> shared_mutex m;
> upgrade_lock<shared_mutex> lock(m);
> upgrade_to_unique_lock<shared_mutex> lock2(lock);
> }

Thanks for highlighting this problem.

Anthony

-- 
Anthony Williams
Author of C++ Concurrency in Action | http://www.manning.com/williams
just::thread C++0x thread library   | http://www.stdthread.co.uk
Custom Software Development         | http://www.justsoftwaresolutions.co.uk
Just Software Solutions Ltd, Registered in England, Company Number 5478976.
Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK

Threads-Devel list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk