It seems that tbb::atomic variables don't have default initialisation. I was expecting that they would be default initialised to zero so that if I wrap a pointer inside a tbb::atomic, for example, it would be initialised to null. The TBB book also mentions this feature. Instead, I am constantly having to write code like tbb::atomic ptr; ptr = 0;
The correction for this is trivial and I have already done so on my TBB copy but I though I would mention the issue in this forum in case I'm missing something terribly obvious.