|
Boost : |
From: Batov, Vladimir (Vladimir.Batov_at_[hidden])
Date: 2004-07-22 19:16:37
> Batov, Vladimir wrote:
>
> > How 'bout
> >
> > scoped_lock lk1(m, defer);
> > scoped_lock lk2(m, try);
> >
>
> "try" is a keyword, last I checked. ;-)
[Batov, Vladimir] Oh, my goodness. Of course, it is. LOL. Looks like I
have not woken up yet. Then, I guess, I am leaning towards Howard's
original
scoped_lock lk1(m, defer_lock);
scoped_lock lk2(m, try_lock);
Minor repetition issue aside, it looks like the clearest, simplest and
most consistent choice.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk