Multiuser Lingo Dictionary > Multiuser Lingo Dictionary > status |  |

status

Syntax

    whichThread.status

Description

Multiuser Server server-side function; returns a symbol indicating the current status of the given thread. The possible `status` values are as follows:

Symbol | Definition
--- | ---
`#awaitValue` | Thread is awaiting a value from another thread. See produceValue().
`#breakPoint` | Thread is stopped at a breakpoint. See setBreakPoint().
`#call` | Thread has executed a call() command. See call().
`#error` | An error has occurred in the thread.
`#lock` | Thread is locked. See lock().
`#produceValue` | Thread has produced a value and no other thread has called awaitValue(). See awaitValue() and produceValue().
`#resume` | Thread has resumed from waiting. See resume().
`#run` | Thread is running.
`#sleep` | Thread is sleeping. See sleep().
`#stepInto` | Thread is stepping through script instructions, including handler calls. See stepInto().
`#stepOver` | Thread is stepping through script instructions, excluding handler calls. See stepOver().

Example

This statement sets the variable `theStatus` to the current status of the thread `testThread`:

    theStatus = testThread.status

See also

`sleep()`, `resume()`, `lock()`, `call()`, `produceValue()`, `setBreakPoint()`, `stepInto()`, `stepOver()`