Replaced Windows event signaling logic with our portable Condition class.