cURL / Mailing Lists / curl-library / Single Mail


Re: Intel(R) Thread Checker report

From: Daniel Stenberg <>
Date: Wed, 20 Jun 2007 14:05:36 +0200 (CEST)

On Wed, 20 Jun 2007, Gerrit Bruchhäuser wrote:

> according to Intel(R) Thread Checker, incrementing/decrementing shared
> data of i.e. type 'volatile unsigned int' is not thread safe. So I got a lot
> of error reports from the tool within libcurl.

But are they legitimate warnings? Such operations should only be used where it
either is documented not to be thread safe, or where it really is harmless if
each CPU would have their own instance.

> Even if I don't think the way cURL does things leads to problems on x86, it
> may lead to problems on dual core or other architectures. My suggestion is
> to change the FAQ so that people (like me) will be informed about this.

I'm not aware of any dual-core problems. What exactly are you suggesting we
should add to the FAQ?

  Commercial curl and libcurl Technical Support:
Received on 2007-06-20