[Ecls-list] Making new class with defclass in another thread

Mark Cox markcox80 at gmail.com
Mon Nov 5 03:57:17 UTC 2012


Hi Peter,

On Mon, Nov 5, 2012 at 11:10 AM, Peter Enerccio <enerccio at gmail.com> wrote:
> Hello, if I attempt to create new class in code evaluated in thread, it will
> either ends with segfault or it will simply freeze the thread. Evaluating
> same code in main thread is fine.

Which version of ECL are you using?

The following works fine for me with 4a4c2289d
(mp:process-run-function 'create-my-class #'(lambda ()
					      (eval `(defclass my-class ()
						       ()))))

(sleep 5)
(print (make-instance 'my-class))
(terpri)

Thanks
Mark

>
> --
> Bc. Peter Vaňušanik
> http://www.bishojo.tk
>
>
> ------------------------------------------------------------------------------
> LogMeIn Central: Instant, anywhere, Remote PC access and management.
> Stay in control, update software, and manage PCs from one command center
> Diagnose problems and improve visibility into emerging IT issues
> Automate, monitor and manage. Do more in less time with Central
> http://p.sf.net/sfu/logmein12331_d2d
> _______________________________________________
> Ecls-list mailing list
> Ecls-list at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ecls-list
>




More information about the ecl-devel mailing list