threads vocabulary - Factor Documentation (original) (raw)

threads vocabulary
Factor handbook » Vocabulary index

Documentation
Co-operative threads

Metadata

Authors: Slava Pestov

Words

Tuple classes

Class Superclass Slots
thread tuple name quot exit-handler id context state runnable mailbox variables sleep-entry

Generic words

Word Stack effect
sleep ( dt -- )
sleep-until ( n/f -- )

Symbol words

initial-thread

Ordinary words

Word Stack effect
(spawn) ( 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

Word Stack effect
thread? ( object -- ? )

Files

resource:basis/threads/threads.factor
resource:basis/threads/threads-docs.factor
resource:basis/threads/threads-tests.factor

Metadata files

resource:basis/threads/authors.txt
resource:basis/threads/summary.txt