set_lock


Description:

public void set_lock (RecMutex mutex)

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.

Parameters:

this

The Task to use

mutex

The RecMutex to use