Skip to main content

publish_as_synced

Function publish_as_synced 

Source
fn publish_as_synced(inner: &Arc<Inner>, held: Arc<Held>) -> Result<()>
Expand description

Publishes held commits as the log syncs past them, on a thread of its own.

Numbering a frame can reserve sequence numbers, which is an append that syncs the log, so publishing cannot happen inside a sync. The thread holds the producer weakly and ends at the first wake after it is dropped.