mm_sync_suspend()

Suspend a synchronization.

Synopsis:

#include <mmsync/mmsyncclient.h>
int mm_sync_suspend( mmsync_hdl_t *hdl, 
                     unsigned op_id, 
                     uint32_t flags )

Arguments:

hdl

The mm-sync connection handle

op_id

The operation ID of synchronization to suspend

flags

Use MM_SYNC_SUSPEND_FLAGS_WAIT to block until the synchronization thread has been suspended

Library:

mmsyncclient

Description:

Suspend a synchronization. A synchronization may be suspended to relieve contention on a device for a temporary purpose, such as accessing a file or starting playback quickly. This differs from cancelling a synchronization, which may be done if that synchronization is no longer needed or begins to negatively impact performance.

Returns:

0 on success, -1 on failure