Handbook
Glossary
tnamespace ( -- assoc )
Factor handbook
»
The language
»
Co-operative threads
»
Thread-local state and variables
Prev:
self ( -- thread )
Next:
tget ( key -- value )
Vocabulary
threads
Inputs
None
Outputs
assoc
an
assoc
Word description
Outputs the current thread's set of thread-local variables, allocating the association on first use.
Definition
USING:
accessors
kernel
;
IN:
threads
:
tnamespace
( -- assoc )
self
dup
variables>>
[
nip
]
[
H{
}
clone
>>variables
variables>>
]
if*
;
inline