[Mono-list] Mono static library

JarkkoL jarkko at profoundic.com
Wed May 25 02:43:36 EDT 2011


Robert Jordan wrote:
> 
> It won't work unless you also hack GC_thread_is_registered in
> libgc/win32_threads.c and maybe other places inside Mono's runtime.
> 
I was just thinking to define GC_INSIDE_DLL=1 for the build so the function
always returns 1. Of course it doesn't check if I happen to forgot to call
GC_new_thread() after thread creation, but in my case it's not really an
issue as the thread creation that may use Mono/GC is very localized. I think
for proper implementation you could use TLS variable and update it from
GC_new_thread() or something.


Robert Jordan wrote:
> 
> Mono does not use GC_CreateThread.
> 
It's being called by mono from mono_gc_init()


Thanks, Jarkko


--
View this message in context: http://mono.1490590.n4.nabble.com/Mono-static-library-tp3546774p3548977.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list