Boost logo

Boost Users :

Subject: Re: [Boost-users] [threads] recursive shared_mutex
From: Tim Blechmann (tim_at_[hidden])
Date: 2009-04-07 07:52:18


> Is this so? In case boost::shared_mutex is indeed non-recursive, I've
> read the following assertion on Hinnant's paper N2406
> (http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2406.html ):
>
> "A recursive shared mutex could be built upon shared_mutex if desired,
> but this is not proposed."
>
> Does anyone has a reference on how to construct a recursive
> shared_mutex from a non-recursive one?

i have an implementation of a recursive shared mutex (nova::rw_mutex),
which is based on a nonrecursive wrapper for pthread_rwlock_t [1]. maybe
this is of some help ...

cheers, tim

[1]
http://tim.klingt.org/git?p=nova-server.git;a=blob;f=source/utilities/rw_mutex.hpp

-- 
tim_at_[hidden]
http://tim.klingt.org
Contrary to general belief, an artist is never ahead of his time but
most people are far behind theirs.
  Edgar Varèse



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