[Ecls-list] Special variables and threads

Peter Enerccio enerccio at gmail.com
Sat Jan 19 01:06:17 UTC 2013


Thanks, good to know because I was wondering if I have to protect special
variables in some ways.


2013/1/18 Matthew Mondor <mm_lists at pulsar-zone.net>

> 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
> > world.
>
> 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.
>
> Thanks,
> --
> Matt
>
>
> ------------------------------------------------------------------------------
> Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
> much more. Get web development skills now with LearnDevNow -
> 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
> SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122812
> _______________________________________________
> Ecls-list mailing list
> Ecls-list at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ecls-list
>



-- 
Bc. Peter Vaňušanik
http://www.bishojo.tk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20130119/5acedf5a/attachment.html>


More information about the ecl-devel mailing list