
29 Sep
2004
29 Sep
'04
11:31 a.m.
Ben Hutchings wrote: [...]
Having said all that, I feel the naming of functions may give a false sense of generality and encapsulation when they actually only work in the way they are being used currently.
You mean that
bool expired() { return lock();
I meant !lock();
}
is better?
Not really.
I mean that current expired() doesn't synchronize the local view of counter and hence may never return true (absent some user's synchronization). If I were maintainer, I'd probably strengthen it... for the sake of saving bandwidth trying to explain it. ;-) regards, alexander.