dar_cancel_thread

fndar_err dar_cancel_thread(ulong tid, int immediate, ulong flag)

Request cancellation of a libdar operation in the specified thread.

The operation will abort at the next checkpoint, throwing an exception that properly cleans up resources. This does not terminate the thread itself, but causes the libdar call to return control to the caller.

Parameters

tidthe thread ID (as returned by dar_get_thread_id())
immediateif 1, cancel as fast as possible; if 0, try to make archive usable
flaguser-defined value passed to the cancellation exception

Returns

DAR_E_OK on success, error code otherwise.