]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/threads/threads.factor
primitives: Change PRIMITIVE: to check that the word is in that vocabulary and the...
[factor.git] / basis / threads / threads.factor
index d8bccf9f8ad45bab661e3f20af0ae9f03ff3cdb3..51097a604393e682dcda7c405a5341769ae47b43 100644 (file)
@@ -9,6 +9,15 @@ FROM: assocs => change-at ;
 IN: threads
 
 <PRIVATE
+PRIMITIVE: (set-context) ( obj context -- obj' )
+PRIMITIVE: (set-context-and-delete) ( obj context -- * )
+PRIMITIVE: (sleep) ( nanos -- )
+PRIMITIVE: (start-context) ( obj quot -- obj' )
+PRIMITIVE: (start-context-and-delete) ( obj quot -- * )
+PRIMITIVE: callstack-for ( context -- array )
+PRIMITIVE: context-object-for ( n context -- obj )
+PRIMITIVE: datastack-for ( context -- array )
+PRIMITIVE: retainstack-for ( context -- array )
 
 ! Wrap sub-primitives; we don't want them inlined into callers
 ! since their behavior depends on what frames are on the callstack