diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:29 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:29 -0800 |
commit | 8466d8cfa486fb30d1755c4261b781135083787b (patch) | |
tree | c8c12c67246f543c3cc4f64d1c07e003cb1d45ae /process.scm | |
parent | 87b82b5822ca54228cfa6df29be3ad9d4bc47d16 (diff) | |
download | slib-upstream/3a1.tar.gz slib-upstream/3a1.zip |
Import Upstream version 3a1upstream/3a1
Diffstat (limited to 'process.scm')
-rw-r--r-- | process.scm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/process.scm b/process.scm index bdd7969..d691aa6 100644 --- a/process.scm +++ b/process.scm @@ -8,7 +8,7 @@ ;1. Any copy made of this software must include this copyright notice ;in full. ; -;2. I have made no warrantee or representation that the operation of +;2. I have made no warranty or representation that the operation of ;this software will be error-free, and I am under no obligation to ;provide any services, by way of maintenance, update, or otherwise. ; @@ -20,13 +20,14 @@ (require 'full-continuation) (require 'queue) +;@ (define (add-process! thunk1) (cond ((procedure? thunk1) (defer-ints) (enqueue! process:queue thunk1) (allow-ints)) (else (slib:error "add-process!: wrong type argument " thunk1)))) - +;@ (define (process:schedule!) (defer-ints) (cond ((queue-empty? process:queue) (allow-ints) @@ -38,7 +39,7 @@ (allow-ints) (proc 'run)) (kill-process!)))))) - +;@ (define (kill-process!) (defer-ints) (cond ((queue-empty? process:queue) (allow-ints) |