
22 Jul
2004
22 Jul
'04
11:30 p.m.
On Fri, 23 Jul 2004 01:22:48 +0200, Alexander Terekhov <terekhov@web.de> wrote:
Matt Hurd wrote:
On Fri, 23 Jul 2004 08:31:18 +1000, Batov, Vladimir <vladimir.batov@ca.com> wrote:
How 'bout
scoped_lock lk1(m, defer); scoped_lock lk2(m, try);
no comment except that perhaps scoped_lock can be dropped for just lock. scoped_lock seems so twentieth century ;-)
Yeah. And I'm sick and tired of all these "lock" verbs and nouns.
guard g1(m, disengaged); guard g2(m, try_engage);
Oder? ;-)
regards, alexander.
a mutex is often referred to as a guard and having a lock called a guard is not ideal IMO. however guard g(m, attack) for a spin lock is attractive :-) matt.