Boost logo

Threads-Devel :

From: Anthony Williams (anthony_at_[hidden])
Date: 2008-03-13 04:47:07


Quoting William R Speirs <bill.speirs_at_[hidden]>:

>> The read/write mutex has been replaced with boost::shared_mutex which
>> works fine.
>
> I've downloaded boost v1.34.1; however, there is no shared_mutex in that
> version. I'm guessing that shared_mutex is in a beta version?

Yes, it will be in 1.35.0

> I looked around the SourceForge page, and the online CVS without finding
> the source files that include a shared_mutex. I also checked out the
> source from CVS and couldn't find the shared_mutex code :-( So I'll ask
> the basic question, how do I obtain the latest source for boost threads
> that includes things like shared_mutex?

The sourceforge CVS repository is no longer used. Boost development is
now done under subversion: go to http://svn.boost.org for details.

>> Thanks for the offer of help. There isn't a list of what needs to be
>> done anywhere. I'll see if I can think of anything. If you think of
>> anything yourself, post here, and do it.
>
> My first thought was that semaphores were missing. After reading FAQ #11
> and http://www.mail-archive.com/boost@lists.boost.org/msg07826.html I
> know more about semaphores and why there are not in Boost than I ever
> wanted to know :-)
>
> My next thought was an additional method for the thread class to expose
> the underlying "thread" (bad term, don't know what else to call it). For
> example in pthreads it would be pthread_t and in Windows it would be a
> HANDLE.

In the 1.35.0 code there is a function called native_handle() on the
thread object.

>> I've also got a new Windows mutex implementation to check in, and code
>> for acquiring multiple locks, which needs a proper set of tests.
>
> Where would this be checked into? I wouldn't mind trying to break it for
> you :-)

I'll be checking this stuff into the subversion trunk. I'll post here
when I do.

Anthony

-- 
Anthony Williams            | Just Software Solutions Ltd
Custom Software Development | http://www.justsoftwaresolutions.co.uk
Registered in England, Company Number 5478976.
Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL

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