diff --git a/scheme/base.sld b/scheme/base.sld index 840debbd..c368ec58 100644 --- a/scheme/base.sld +++ b/scheme/base.sld @@ -1,12 +1,14 @@ (define-library (scheme base) (export ;; Thread functions. these are not standard, and may be relocated + ;; TODO: relocate to (scheme srfi 18) or such thread? make-thread thread-name thread-specific thread-specific-set! thread-start! + thread-yield! ;; END threads ; TODO: need filter for the next two. also, they really belong in SRFI-1, not here ;delete @@ -681,4 +683,7 @@ (let* ((thunk (vector-ref t 1)) (mutator-id (Cyc-spawn-thread! thunk))) (vector-set! t 2 mutator-id))) + (define (thread-yield!) (thread-sleep! 1)) + ;; TODO: thread-terminate! + ;; TODO: thread-join! ))