set_state
Description:
public bool set_state (
TaskState state)
Sets the state of this to state
.
The this must have a lock associated with it using
set_lock when going to GST_TASK_STARTED or GST_TASK_PAUSED or this function
will return false
.
MT safe.
Parameters:
this |
a Task
|
state |
the new task state
|
Returns:
true if the state could be changed.
|