[Mono-devel-list] embedding mono with threads

eric lindvall eric at 5stops.com
Thu Jul 24 12:40:56 EDT 2003

If my code is running as a module for an application that is using pthreads
(and i'm only given a binary for it), i'm not going to be able to
recompile *their* code with "#include <gc/gc.h>".

Does this mean we have no solution for embedding mono in a precompiled
app that is using pthreads?


On Thu, 24 Jul 2003, Dick Porter wrote:

> 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
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

More information about the Mono-devel-list mailing list