[Ecls-list] multi-threaded C++ app

Goffioul Michael goffioul at imec.be
Tue Oct 25 01:32:00 UTC 2005


> Well I have removed the gh.c include, and I can compile fine.
> But I still get an unhandled exception error as soon as I call 
> ecl_import_current_thread(Cnil, Cnil);
> 
> In line with your example, I am creating a native win32 thread using 
> _beginthreadex.
> 
> The main thread simply calls the cl_boot, then creates the 
> thread with 
> immediately calls ecl_import_current_thread.
> 
> This seems to work ok on linux, but not on windows.

Note that the latest changed introduced by Juanjo about threads have not
been ported to Windows. The only change I introduced was to define
GC_THREADS correctly in config.h.

Michael.




More information about the ecl-devel mailing list