[Ecls-list] Special variables and threads
mm_lists at pulsar-zone.net
Fri Jan 18 22:12:55 UTC 2013
On Fri, 18 Jan 2013 22:40:49 +0100
Juan Jose Garcia-Ripoll <juanjose.garciaripoll at gmail.com> wrote:
> On Fri, Jan 18, 2013 at 9:50 PM, Matthew Mondor <mm_lists at pulsar-zone.net>wrote:
> > If you however want to create them from a thread using
> > defparameter/defvar, I'd have to check but my guess is that ECL uses
> > the necessary locks internally for its own package/symbol management.
> > My experience is with special variables to be created before the other
> > threads are launched.
> One thing that can be easily implemented, but which is currently
> deactivated, would be to copy all the special variable bindings from the
> parent thread, so that one may do
> (let ((variable value))
> (declare (special variable))
> ... launch process ...)
> and the process starts with an outer binding of VARIABLE. I never
> implemented it because I am not sure what people are used to in the Lisp
How would process-wide (shared with all threads) bindings be done if
all special variables were automatically locally bound in new threads?
Perhaps that I misunderstood, though.
More information about the ecl-devel