Subj : Re: Improving read-write lock To : comp.programming.threads From : Howard Hinnant Date : Thu Feb 17 2005 07:22 pm In article <42145a05$0$28984$e4fe514c@news.xs4all.nl>, Rob wrote: > Howard Hinnant wrote: > > In article <42135ddd$0$28987$e4fe514c@news.xs4all.nl>, > > Rob wrote: > > > > > >>I would like to know your thought about this. > >>Maybe something like this already exists and has been implemented. > >>Please give > >>me some resources (url's) in that case. > > > > > > I've worked on a very similar library (only interface, not > > implementation, available at link): > > > > http://home.twcny.rr.com/hinnant/cpp_extensions/threads.html > > You keep the implementation to yourself? :) Yes for now. I'm not at liberty to give away my employer's IP. > Did you ever use it in practice? Not the read/upgradable part, I've only used it in test code. The interface was developed during a boost discussion involving several participants. However it is not a boost library. The good people at boost may or may not follow this interface. The part of this interface dealing with move semantics may have significant advantages in the not too far future such as the ability to return locks from functions (even locked locks), and the ability to put locks into standard containers without the fear of accidently transferring or leaking mutex ownership. For now I consider the interface experimental. However the upgradable read idea seems to be a recurring (and promising) theme. And the move semantics part of the interface looks incredibly promising to me. Comments welcome. -Howard .