dar_cancel_thread
fn
dar_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
tid | the thread ID (as returned by dar_get_thread_id()) |
immediate | if 1, cancel as fast as possible; if 0, try to make archive usable |
flag | user-defined value passed to the cancellation exception |
Returns
DAR_E_OK on success, error code otherwise.