void sync()

The sync method can be used to flush all previous operations to disk since the last sync operation, to guarantee crash-proofness. It is a synchronous call that may take some time before returning control.

This page discusses:

See Also
Indexing your first PAPI document