threads vocabulary
Factor handbook > Vocabulary index


Documentation
Co-operative threads

Meta-data
Authors:Slava Pestov


Words

Tuple classes
ClassSuperclassSlots
thread tuplename quot exit-handler id context state runnable mailbox variables sleep-entry


Generic words
WordStack effect
sleep( dt -- )
sleep-until( n/f -- )


Symbol words
initial-thread


Ordinary words
WordStack effect
(spawn)( thread -- )
<thread>( quot name -- thread )
in-thread( quot -- )
interrupt( thread -- )
new-thread( quot name class -- thread )
resume( thread -- )
resume-now( thread -- )
resume-with( obj thread -- )
run-queue( -- dlist )
self( -- thread )
sleep-queue( -- heap )
sleep-time( -- nanos/f )
spawn( quot name -- thread )
spawn-server( quot name -- thread )
stop( -- * )
suspend( state -- obj )
tchange( ..a key quot: ( ..a value -- ..b newvalue ) -- ..b )
tget( key -- value )
thread-continuation( thread -- continuation )
thread-registered?( thread -- ? )
threads( -- assoc )
tnamespace( -- assoc )
tset( value key -- )
waiting-callbacks( -- assoc )
yield( -- )


Class predicate words
WordStack effect
thread?( object -- ? )


Files


Children
VocabularySummary
threads.privatethreads.private vocabulary