|
Boost Users : |
Subject: Re: [Boost-users] [thread][repost] recursive shared mutex
From: Marsh Ray (marsh_at_[hidden])
Date: 2010-11-28 17:39:57
On 11/28/2010 04:22 PM, Howard Hinnant wrote:
>
> I guess to implement this the shared_mutex would need
> to keep a vector<pair<thread::id, unsigned>> of shared owners so
> that it can detect and track the recursion.
Or perhaps a few bytes of thread-local storage? Don't know if that's
fair game for this implementation.
- Marsh
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