Handbook
Glossary
resume ( thread -- )
Factor handbook
»
The language
»
Co-operative threads
»
Yielding and suspending threads
Prev:
suspend ( state -- obj )
Next:
resume-with ( obj thread -- )
Vocabulary
threads
Inputs
thread
a
thread
Outputs
None
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
;