Multiuser Lingo Dictionary > Multiuser Lingo Dictionary > produceValue() |  |

produceValue()

Syntax

    produceValue(whichValue)

Description

Multiuser Server server-side function; produces a value in a variable in the current thread for transfer to another thread. This function blocks the current thread until some other thread picks up the value using the `awaitValue()` function.

This function should be used for a single thread producing a value for a single other thread. To send values to multiple threads, use `lock()`, `wait()`, `notifyAll()`, and `unlock()`.

Example

These server-side statements set the variable `theValue` to the integer 96 and the pass the value to another thread with `produceValue()`:

    theValue = 96
    produceValue(theValue)

See also

`awaitValue()`, `lock()`, `wait()`, `notifyAll()`, `unlock()`