Diffusion Sink 745b52c9df40

Avoid blocking the eventloop for too long.

Authored by cmollekopf on Jan 11 2020, 9:33 AM.

Description

Avoid blocking the eventloop for too long.

There are two places where we primarily write to disk:

  • When the synchronizer writes to the messagequeue
  • When the pipeline writes to the main store

To avoid blocking for too long we "yield" back to the eventloop
whenever that happened, because otherwise we will completely block
the evenloop until the entire sync/pipeline processing operation is
complete (and especially for the sync that can take a long while).

Details

Committed
cmollekopfJan 11 2020, 9:33 AM
Parents
R9:801b3bcc3317: Time synchronizations
Branches
Unknown
Tags
Unknown