[Gc] using threads that were not created by GC_pthread_create()
Fri, 25 Jul 2003 12:08:17 +1000
On 24-Jul-2003, eric lindvall <firstname.lastname@example.org> wrote:
> I am looking to embed mono (as a module) in an application that makes use of
> pthreads for which I do not have the source.
> I've been told that if I use pthreads, I need to include gc.h to override
> the standard pthread_create() which calls the boehm hooks that are needed
> for the GC to work.
> Unfortunatly, because I am only writing a module for this application, I
> cannot override the applications pthread_create().
You can override the application's pthread_create() by using
GNU ld's `--wrap' option.
See point 3b in doc/README.Linux.
Fergus Henderson <email@example.com> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <https://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.