Re: [Gc] Re: sigset_t not defined for win32-pthreads

Ivan Maidanski ivmai at
Wed Sep 1 23:12:21 PDT 2010


Wed, 1 Sep 2010 15:16:47 +0000 (UTC) windev92 <windev92 at>:

> I finally got it to build. I was using GC_PTHREADS macro instead of
> Just be careful with 2 very similar macros GC_WIN32_THREADS and 
> you just need to add a missing condition(present in function definition) :
> !defined (GC_WIN32_PTHREADS) in gc_pthread_redirects.h(gcv7.1) to get it 
> to compile
> #if !defined (GC_DARWIN_THREADS) && !defined (GC_WIN32_PTHREADS)
>   int GC_pthread_sigmask(int how, const sigset_t *set, sigset_t *oset);
> #endif

Thanks. Fixed (along with GC_dlopen and pthread_sigmask/dlopen redefinition.

> However, there is a problem during GC_stop_world, pthread_create wrapper
> doesn't register the thread, so it's not suspended during collection.

Does this problem exist in the recent CVS snapshot (or at least in v72a4)?

> DARWIN variant doesn't register it either, but it stops all threads of
> the process.
> rgds

More information about the Gc mailing list