
7 Jul
2004
7 Jul
'04
3:59 p.m.
"Peter Dimov" <pdimov@mmltd.net> writes:
This is certainly possible, but I don't see what the additional complexity buys us.
TryLock l( m, false );
if( l.try_lock() ) { }
looks acceptable to me.
TryLock l( m, non_blocking );
if( l.locked() ) { }
doesn't seem much of an improvement.
It does to me. I like names that say what they mean; false could easily be misinterpreted. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com