-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgochan.sld
30 lines (25 loc) · 823 Bytes
/
gochan.sld
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
(define-library (gochan)
(export gochan
go
gochan-recv
gochan-send
gochan-close
gochan-select*
gochan-select
gochan-after
gochan-tick
gotimer ;; undocumented, but maybe useful, see comments
)
(import (scheme base)
(only (chibi match) match)
(only (chibi time) get-time-of-day timeval-seconds timeval-microseconds)
(only (srfi 95) sort)
(only (srfi 8) receive)
(only (srfi 27) random-integer)
(only (srfi 18)
make-condition-variable condition-variable-signal!
make-mutex mutex-lock! mutex-unlock!
make-thread thread-start!))
(include "queue.scm")
(include "chibi-compat.scm")
(include "gochan.scm"))