mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Noted TODO
This commit is contained in:
parent
0e8129f5e6
commit
7c795f1534
1 changed files with 6 additions and 4 deletions
|
@ -109,17 +109,19 @@
|
|||
(> (vector-length obj) 0)
|
||||
(equal? 'cyc-thread-obj (vector-ref obj 0))))
|
||||
|
||||
;; TODO: does not compile. I suspect the let is not getting expanded for some reason...
|
||||
(define (make-thread thunk . name)
|
||||
; (let ((name-str (if (pair? name)
|
||||
; (car name)
|
||||
; "")))
|
||||
(let ((name-str (if (pair? name)
|
||||
(car name)
|
||||
"")))
|
||||
(vector 'cyc-thread-obj thunk #f name-str #f)))
|
||||
;; Fields supported so far:
|
||||
;; - type marker (implementation-specific)
|
||||
;; - thunk
|
||||
;; - internal thread id (implementation-specific)
|
||||
;; - name
|
||||
;; - specific
|
||||
(vector 'cyc-thread-obj thunk #f name #f))
|
||||
; (vector 'cyc-thread-obj thunk #f name #f))
|
||||
; (vector 'cyc-thread-obj thunk #f 'name-str #f)))
|
||||
|
||||
(define (thread-name t) (vector-ref t 3))
|
||||
|
|
Loading…
Add table
Reference in a new issue