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

windev92 windev92 at yahoo.fr
Wed Sep 1 08:16:47 PDT 2010

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);

However, there is a problem during GC_stop_world, pthread_create wrapper
doesn't register the thread, so it's not suspended during collection.
DARWIN variant doesn't register it either, but it stops all threads of
the process.


More information about the Gc mailing list