Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 44587 invoked from network); 17 Sep 2008 13:18:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Sep 2008 13:18:36 -0000 Received: (qmail 90535 invoked by uid 500); 17 Sep 2008 13:18:33 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 90507 invoked by uid 500); 17 Sep 2008 13:18:33 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 90496 invoked by uid 99); 17 Sep 2008 13:18:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Sep 2008 06:18:33 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Sep 2008 13:17:43 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 04975234C1CA for ; Wed, 17 Sep 2008 06:17:45 -0700 (PDT) Message-ID: <1239686113.1221657465010.JavaMail.jira@brutus> Date: Wed, 17 Sep 2008 06:17:45 -0700 (PDT) From: "Farid Zaripov (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Created: (STDCXX-1016) __rw::__rw_mutex __rw::__rw_locale::_C_mutex member currentry is not used MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org __rw::__rw_mutex __rw::__rw_locale::_C_mutex member currentry is not used ------------------------------------------------------------------------- Key: STDCXX-1016 URL: https://issues.apache.org/jira/browse/STDCXX-1016 Project: C++ Standard Library Issue Type: Improvement Components: 22. Localization Affects Versions: 4.2.1, 4.2.0, 4.1.4, 4.1.3 Environment: All Reporter: Farid Zaripov Assignee: Farid Zaripov Priority: Trivial Fix For: 4.2.2 Currently the _C_mutex data member of the __rw::__rw_locale class is mentioned only in _C_add_ref () and _C_remove_ref () methods of this class. But neither _C_add_ref () nor _C_remove_ref () are not invoked from anywhere. The proposed patch: {noformat} Index: src/locale_body.h =================================================================== --- src/locale_body.h (revision 695985) +++ src/locale_body.h (working copy) @@ -91,8 +91,6 @@ // (i.e., one with the same id) in the locale object _RWSTD_SIZE_T _C_byname_facet_bits; - __rw_mutex _C_mutex; - friend struct _STD::locale; public: @@ -165,14 +163,6 @@ return _RWSTD_ATOMIC_PREDECREMENT (__facet._C_ref, false); } - _RWSTD_SIZE_T _C_add_ref () { - return _RWSTD_ATOMIC_PREINCREMENT (_C_ref, _C_mutex); - } - - _RWSTD_SIZE_T _C_remove_ref () { - return _RWSTD_ATOMIC_PREDECREMENT (_C_ref, _C_mutex); - } - // access private facet name static const char* _C_get_cat_name (const __rw_facet &__facet) { return __facet._C_name; {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.