[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question on Multithreading from C API



> (define (start-computation str)
>    (let ([exp (read-from-string str)])
>      (eval
>        `(thread
>           (lambda ()
>             (with-handlers ([(lamdba (x) #t) (lambda (x) (cons #f x))])
>               (cons #t ,exp))))))
> 
> Of course, you would need more, since this doesn't communicate it's 
> result with anyone.
> 
> [ The procedure you were looking for (probably) is called `current-thread'. ]
> 

Looks good.  I've got a little mock-up running now.  I'll be fully
multithreaded by the end of the week!  ;-)

Thanks for the help,

-Brent