[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
rtsl RefName TaskName VariableName/none [lock/unlock]
rtsl
command changes lock-variable properties of a
referentials' task.
A task can lock or unlock a variable. A variable is not locked when its value is an empty string. A task can lock a variable only when the variable is not locked. If the variable is already locked by another task, the task waits : its state becomes `wait_for_lock'.
When the variable is unlocked (by another task), the task locks this variable and starts.
If serveral tasks of serveral days are waiting to lock a same variable, then the task of the first day in alphabetic order has the priority. If you use a notation `dayName-YYYY-MM-DD' for days' name, then the task of the oldest day has the priority.
If serveral tasks of a same day are waiting to lock a same variable, then the first task in alphabetical order has the priority.
The two first parameters are the referential name and the task name.
The third parameter is the name of the variable to lock or to unlock. If the value of this parameter is `none', then the task doesn't use a lock-variable. In this case, the fourth parameter is not attempted.
The fourth parameter is the action to execute on the variable : `lock' or `unlock'.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |