flush_revision_queue


Description:

public uint flush_revision_queue ()

Expert: All changes to this that has not yet been propagated to the peer models are send.

If you also want to block the mainloop until all the underlying transport streams have been flushed use flush_revision_queue_sync.

Normally SharedModel collects changes to this into batches and sends them automatically to all peers. You can use this call to provide fine grained control of exactly when changes to this are synchronized to its peers. This may for example be useful to improve the interactivity of your application if you have a model-process which intermix small and light changes with big and expensive changes. Using this call you can make sure the model-process dispatches small changes more aggresively to the view-process, while holding on to the expensive changes a bit longer.

Parameters:

this

The shared model to flush the revision queue on

Returns:

The number of revisions flushed.