
D'oh, fell for that old one. I guess I did forget to put -Wall in my
makefile. Cheers.
2011/6/23 Ignacio Burgueño
On Thu, Jun 23, 2011 at 10:32 AM, Gareth
wrote: ...
I've also checked the bugs list for any known bugs, fixed or otherwise, to do with threading and I haven't found anything. I'm not sure what I'm doing wrong.
The problem is here: https://gist.github.com/1041351#L60 You declare _barrier first and numCPU second, so in your constructor, _barrier will be initialized first, using the value of numCPU, which hasn't been initialized yet. Just change the order of the declarations. Declare _barrier below numNPU. By the way, compiling with -Wall catches all these errors. Regards, Ignacio Burgueño
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users