[Mono-devel-list] Embeding MONO and (p)threads

eric lindvall eric at 5stops.com
Tue Aug 12 02:36:44 EDT 2003

I have submitted a request to the boehm list about investigating what
would need to be done to embed a libgc app in a pre-compiled application.

basically, you can run mono code on any thread that has been created by
something that has been compiled against libgc (and included the correct


On Mon, 11 Aug 2003, David Jeske wrote:

> On Mon, Aug 11, 2003 at 04:38:53PM +0100, Dick Porter wrote:
> > You need to make sure your whole embedded application is using the
> > libgc-wrapped pthreads calls, not just the mono part.  See
> > http://bugzilla.ximian.com/show_bug.cgi?id=46137 for more details.
> While this seems acceptable for now, in the long term this seems like
> a problem. As someone else pointed out, this will prevent Mono from
> being embeddable inside any pre-built applications.
> Can someone elaborate more about what causes this problem, and what we
> might do about it in the future? For example:
> Why does libgc need to override pthread functions? 
> What is the problem with having some code talk directly to pthreads,
> and some code talk to libgc's pthread overrides?

More information about the Mono-devel-list mailing list