[Mono-devel-list] embedding mono with threads

Dick Porter dick at ximian.com
Thu Jul 24 11:28:31 EDT 2003


On Wed, 2003-07-09 at 09:17, eric lindvall wrote:
> I've had all sorts of troubles embedding mono in a world of pthreads.
> 
> The biggest problems i've found are that:
> 
> - I can't seem to run mono_jit_init() from a thread other than the "main
>   thread" (see oxide-3)
> - odd things start to happen when i use pthread_create() and then use
>   mono_thread_attach() (see oxide-2)
> - if mono_runtime_exec_managed_code() isn't used, nothing works right --
>   I'm not quite sure how much and what I'm supposed to do with that call
>   though.. once I call it, can I run everything else in a different
>   thread?

For the list archives (this is detailed in bug 46137), this was caused
by mixing libgc pthread overrides in libmono but missing them in the
embedding code.

- Dick





More information about the Mono-devel-list mailing list