| 1 |
;; |
| 2 |
;; SRFI-18 - multithreading support |
| 3 |
;; In Gauche, SRFI-18 is covered by gauche.threads |
| 4 |
;; |
| 5 |
|
| 6 |
(define-module srfi.18 |
| 7 |
(use gauche.threads) |
| 8 |
(export current-thread |
| 9 |
|
| 10 |
thread? make-thread thread-name thread-specific-set! thread-specific |
| 11 |
thread-start! thread-yield! thread-sleep! |
| 12 |
thread-join! thread-terminate! |
| 13 |
|
| 14 |
mutex? make-mutex mutex-name mutex-state |
| 15 |
mutex-specific-set! mutex-specific |
| 16 |
mutex-lock! mutex-unlock! |
| 17 |
|
| 18 |
condition-variable? make-condition-variable condition-variable-name |
| 19 |
condition-variable-specific condition-variable-specific-set! |
| 20 |
condition-variable-signal! condition-variable-broadcast! |
| 21 |
|
| 22 |
current-time time? time->seconds seconds->time |
| 23 |
|
| 24 |
current-exception-handler ;re-export from built-in |
| 25 |
with-exception-handler ; ditto |
| 26 |
raise ; ditto |
| 27 |
|
| 28 |
join-timeout-exception? abandoned-mutex-exception? |
| 29 |
terminated-thread-exception? uncaught-exception? |
| 30 |
uncaught-exception-reason |
| 31 |
)) |