[plt-scheme] Idiom for suspending the top level thread
Thanks. Cookbooked for posterity:
http://schemecookbook.org/Cookbook/ThreadSuspendingCurrentThread
N.
--- Matthew Flatt <mflatt at cs.utah.edu> wrote:
> At Tue, 13 Jun 2006 03:54:04 -0700 (PDT), Noel Welsh
> wrote:
> > What is the preferred idiom for suspending the top
> level
> > thread to stop a program exiting?
>
> My favorite is
> (sync (make-semaphore))
> or, in MrEd,
> (yield (make-semaphore))
...
Email: noelwelsh <at> yahoo <dot> com noel <at> untyped <dot> com
AIM: noelhwelsh
Blogs: http://monospaced.blogspot.com/ http://www.untyped.com/untyping/
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com