[Prev][Next][Index][Thread]
Re: Passing parameters to threads
Scott McKay wrote:
> Roman Budzianowski wrote in message <38F8DBD3.CA361AA3@us.oracle.com>...
>
> >It may simpler to just define a thread variable like:
> >define thread variable *thread-state* = #f;
> >
> >and then use the with-dynamic-binding macro (I hope I got the name right):
> >with-dynamic-binding(*thread-state* = get-my-state())
> >...
> >
> >end;
>
> I don't think this is simpler than making a closure, and besides
> the new thread runs, well, in its own thread. So binding a thread
> variable will simply be invisible to the new thread.
Yup, I misunderstood the original problem.
References: