SAM function SAM-Execution-cancel()
SAM_Execution_cancel - Cancel the execution of a worker thread
#include <sam.h> void SAM_Execution_cancel(SAM_t sam, SAM_Workerid_t wid);
The SAM_Execution_cancel() function cancels the execution of the worker thread wid. On its return, the worker thread is already cancelled. It shall only be called from the main execution thread.
 Return value
None, assumes correct input parameters.