[Gc] Boehm GC + Thread Building Blocks

Alexander Herz alexander.herz at mytum.de
Fri May 4 07:22:56 PDT 2012


I figured it out myself,
I didn't define #define GC_THREADS before every include of <gc_cpp.h> .

Alex

On 05/04/2012 01:56 PM, Alexander Herz wrote:
> Hi,
>
> I'm trying to use boehm gc in conjunction with TBB.
> I compile TBB with
>
> #define GC_THREADS
> #include <gc_cpp.h>
>
> in what I hope to be the appropriate places.
>
> Still I get "Collecting from unknown thread." when a collection is 
> triggered from a TBB worker thread.
> From the app's main thread everything is fine.
>
> Is there an easy way (on my std. ubuntu) to figure out if/where 
> pthread_create is bypassing the boehm implementation? Do I need to do 
> more than
> #define GC_THREADS
> #include <gc_cpp.h>??
>
> Has anybody any experience with this??
>
> Regards,
> Alex
> _______________________________________________
> Gc mailing list
> Gc at linux.hpl.hp.com
> http://www.hpl.hp.com/hosted/linux/mail-archives/gc/



More information about the Gc mailing list