Class Thread.Local (< ValueType >)

Description

Thread local variable storage.

This class allows you to have variables which are separate for each thread that uses it. It has two methods: get() and set(). A value stored in an instance of Local can only be retrieved by that same thread.

Note

This class is simulated when Pike is compiled without thread support, so it's always available.


Generic ValueType

__generic__ mixed ValueType = mixed

Description

Type for the value to be stored in the thread local storage.