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 pointer.
op_id
The operation ID of the 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. You can do this 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 can be done if it's no longer needed or it begins to negatively impact performance.

Returns:

0 on success, -1 on failure.