Eventlog flushing with threaded is broken
Calling flushEventLog
doesn't flush the buffers for each capability.
This is because the flush is in the wrong place. yieldCapability
is not called on the normal code path for stopAllCapabilities
, yieldCapability
is only called when a sync has already been requested for another reason.
The probably correct place to flush is in between the stop/releaseAllCapabilities
call.