
23 Jul
2004
23 Jul
'04
12:16 a.m.
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.