Function cimba_trial_cleanup_set

Function Documentation

void cimba_trial_cleanup_set(cimba_trial_cleanup_func *clufunc, void *usrarg)

Set the user-defined trial cleanup function. It will only be called when abandoning a trial after calling cmb_logger_error inside a multi- threaded simulation run. It is thread local, needs to be set in each user-provided trial function.

Parameters:
  • clufunc – A function to be called when exiting a trial, possibly NULL to clear the cleanup function callback.

  • usrarg – An argument to be passed to the clufunc, possibly NULL.