
22 Oct
2003
22 Oct
'03
5:07 a.m.
We both seem to agree that merely grabbing a mutex (or blocking on an attempt to grab a mutex) is not changing the object's state.
You're saying acquring a mutex doesn't change its state?
Somehow, and this is a gut feeling, the condition.wait() seems different to me. Perhaps because it requires a change in the objects state in order to continue.
In this case, I think the names of the operations are misleading as far as constness is concerned. "lock" sounds a lot like something that changes state, but "wait" doesn't--it sounds quite passive by comparison. Scott McCaskill