Revision 1640
Jump to revision: |
|
Author: |
pje |
Date: |
Mon Jan 26 02:44:10 2004 UTC (20 years, 2 months ago) |
Log Message:
Implemented boolean operations on 'events.IConditional' objects, and added
'isTrue' and 'isFalse' event sources to 'IValue' objects. So now you can
do things like 'yield aCondition & otherCondition' to wait until two
conditions are true. Unfortunately, it is possible to have a race
condition if some code sets 'aCondition' to true before setting
'otherCondition' to false, in that as soon as both are true, the waiting
thread would resume. Sometimes this is what you want, and sometimes not.
I'm beginning to wonder if one needs a sort of "transactionality" to
events, so that one can set a variety of values or conditions, and *then*
allow the callbacks to fire. But that will require some further thought.
Changed paths: