Set the mutex used by the task.
The mutex will be acquired before calling the TaskFunction.
This function has to be called before calling pause or start.
MT safe.
this |
The Task to use |
mutex |
The RecMutex to use |