X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=8sync%2Finbox.scm;h=fbf8df08222310dfd2b74c4d6c8a088f9b54d62e;hb=refs%2Fheads%2Ffibers;hp=bf1eabc1a3fb8a9c3607e01384b3bfdd63c0b46b;hpb=67f40c6246d3f83a64bcc5ffbe884752c003ded9;p=8sync.git diff --git a/8sync/inbox.scm b/8sync/inbox.scm index bf1eabc..fbf8df0 100644 --- a/8sync/inbox.scm +++ b/8sync/inbox.scm @@ -27,10 +27,12 @@ #:use-module (ice-9 atomic) #:export (delivery-agent)) +;; TODO: Add backpressure limit (define (delivery-agent inbox-enq inbox-deq stop?) "This starts up a loop doing delivery receiving from INBOX-ENQ and -delivering to INBOX-DEQ, actually managing an (ice-9 q) object QUEUE. -Atomic box STOP? can be set to indicate that this " +delivering to INBOX-DEQ, actually managing an internal object QUEUE. +Condidtion variable STOP? can be set to indicate that this agent +should stop." (define queue (make-q)) (define get-or-stop