Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
resume ( thread -- )
Factor documentation
>
Factor handbook
>
The language
>
Co-operative threads
>
Yielding and suspending threads
Prev:
suspend ( state -- obj )
Next:
resume-with ( obj thread -- )
Vocabulary
threads
Inputs and outputs
thread
a
thread
Word description
Adds a thread to the end of the run queue. The thread must have previously been suspended by a call to
suspend
.
Definition
USING:
accessors
deques
;
IN:
threads
:
resume
( thread -- )
f
>>state
run-queue
push-front
;