Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 80222 invoked from network); 6 Sep 2007 18:03:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Sep 2007 18:03:19 -0000 Received: (qmail 17952 invoked by uid 500); 6 Sep 2007 18:03:14 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 17942 invoked by uid 500); 6 Sep 2007 18:03:14 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 17931 invoked by uid 99); 6 Sep 2007 18:03:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 11:03:13 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.30.140.160] (HELO moroha.quovadx.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 18:03:11 +0000 Received: from qxvcexch01.ad.quovadx.com ([192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id l86I2n7c013763 for ; Thu, 6 Sep 2007 18:02:49 GMT X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [PATCH] Use __rw_atomic_xxx() on Windows Date: Thu, 6 Sep 2007 12:02:47 -0600 Message-ID: In-Reply-To: <46DF6DD8.7000100@roguewave.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] Use __rw_atomic_xxx() on Windows Thread-Index: AcfwMotHbU+7SvscSwawekwXTERT8gAfUCfQ References: <46D453D9.8010503@epam.com> <46D64CE0.4000905@roguewave.com> <46DE02EB.6010707@roguewave.com> <46DF6DD8.7000100@roguewave.com> From: "Travis Vitek" To: X-Virus-Checked: Checked by ClamAV on apache.org Doh! I should know better. Here is the results from a 12d build on the same hardware. normal patched ------ 1 threads ------ 1 threads ms 934 ms 1015 ms/op 0.00005567 ms/op 0.00006050 ------ 2 threads ------ 2 threads ms 6049 ms 6266 ms/op 0.00036055 ms/op 0.00037348 ------ 4 threads ------ 4 threads ms 11948 ms 11813 ms/op 0.00071216 ms/op 0.00070411 ------ 8 threads ------ 8 threads ms 23855 ms 24743 ms/op 0.00142187 ms/op 0.00147480=20 Martin Sebor wrote: > >8d is not thread-safe so the atomic function templates should >be implemented in terms of ordinary increments and decrements >(if they aren't it's a bug). They should only expand to the >atomic assembly (or the Win32 Interlocked) functions in 12X >and 15X build types. > >Martin >