Re: [CMake] CheckForPthreads.c

2010-06-16 Thread Michael Hertling
On 06/15/2010 05:07 PM, Kevin Fitch wrote: > I have been converting an existing make based build system over to cmake, > and overall I am loving it so far. > > I happened to run across CheckForPthreads.c, and was a little surprised to > see that it was basically a classic example of racy code. >

[CMake] CheckForPthreads.c

2010-06-15 Thread Kevin Fitch
I have been converting an existing make based build system over to cmake, and overall I am loving it so far. I happened to run across CheckForPthreads.c, and was a little surprised to see that it was basically a classic example of racy code. The two spawned threads both increment res, which is th