From: Ken A. <kan...@bb...> - 2004-01-21 18:09:22
|
Geoffrey asked about synchronized methods in JScheme. A procedure with no arguments is a Java Runnable so you can create threads easily: (.start (Thread. (lambda () (do-the-real-work...))) There is a (synchronize) procedure that takes an object and a procedure of one argument: (synchronize x (lambda (x) (do-horrible-side-effect x) ...)) The file elf/future.scm is a implementation of multilisp's future idea. k |