From: Timothy H. <tim...@ma...> - 2003-03-05 20:24:51
|
(synchronize X F) synchronizes the current thread on object X and blocks until it gets the lock on X, at which time it calls (F X) e.g. (synchronize x .wait) gets a lock on x and then gives up all locks and waits until it is notified (synchronize x .notify) gets a lock on x and then notifies some thread waiting on x I often use the idiom (synchronize g (lambda(g) ....)) or (synchronize g (lambda(_) ...)) ---Tim--- On Wednesday, March 5, 2003, at 01:58 PM, Geoffrey Knauth wrote: > I can use Java threads from JScheme. > > But can I make JScheme variables `synchronized' ? > > Geoffrey > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The > debugger for complex code. Debugging C/C++ programs can leave you > feeling lost and disoriented. TotalView can help you find your way. > Available on major UNIX and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Jscheme-user mailing list > Jsc...@li... > https://lists.sourceforge.net/lists/listinfo/jscheme-user > |