From issues-return-810-apmail-stdcxx-issues-archive=stdcxx.apache.org@stdcxx.apache.org Mon Mar 24 17:45:31 2008 Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 20845 invoked from network); 24 Mar 2008 17:45:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Mar 2008 17:45:29 -0000 Received: (qmail 61180 invoked by uid 500); 24 Mar 2008 17:45:28 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 61148 invoked by uid 500); 24 Mar 2008 17:45:27 -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 60894 invoked by uid 99); 24 Mar 2008 17:45:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Mar 2008 10:45:26 -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; Mon, 24 Mar 2008 17:44:55 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 52B55234C0A2 for ; Mon, 24 Mar 2008 10:43:24 -0700 (PDT) Message-ID: <1987891878.1206380604324.JavaMail.jira@brutus> Date: Mon, 24 Mar 2008 10:43:24 -0700 (PDT) From: "Farid Zaripov (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Updated: (STDCXX-563) split up rw/_mutex.h MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Farid Zaripov updated STDCXX-563: --------------------------------- Attachment: stdcxx-563.patch The updated patch is attached. {noformat} ChangeLog: STDCXX-563 * include/rw/_atomic.h: New header file with definitions of inline functions for atomic operations. * include/rw/_atomic_aplha.h: New header file with definitions of inline functions for atomic operations on ALPHA platform. * include/rw/_atomic_generic.h: New header file with definitions of generic inline functions for atomic operations with long and long long types. * include/rw/_atomic_ia64_x64.h: New header file with definitions of inline functions for atomic operations on Intel IA64 and X64 platforms. * include/rw/_atomic_mips.h: New header file with definitions of inline functions for atomic operations on MIPS platform. * include/rw/_atomic_mutex.h: New header file with definitions of inline functions for atomic operations with using mutex object. * include/rw/_atomic_parisc.h: New header file with definitions of inline functions for atomic operations on PA RISC platform. * include/rw/_atomic_powerpc.h: New header file with definitions of inline functions for atomic operations on POWERPC platform. * include/rw/_atomic_sparc.h: New header file with definitions of inline functions for atomic operations on SPARC platform. * include/rw/_atomic_x86.h: New header file with definitions of inline functions for atomic operations on Intel X86 platform. * include/rw/_mutex_dce.h: New header file with definitions of classes for thread safety using DCE threads. * include/rw/_mutex_os2.h: New header file with definitions of classes for thread safety using OS2 threads. * include/rw/_mutex_pthread.h: New header file with definitions of classes for thread safety using POSIX threads. * include/rw/_mutex_solaris.h: New header file with definitions of classes for thread safety using Solaris threads. * include/rw/_mutex_windows.h: New header file with definitions of classes for thread safety using Windows threads. * include/rw/_mutex.h: Split content of the file to the set of platform specific and OS specific headers above. (__rw_get_static_mutex) [!_RWSTD_NO_ATOMIC_OPS && !_PA_RISC2_0]: Declare __cntr as int instead of volatile long (see STDCXX-792), use _RWSTD_ATOMIC_PREINCREMENT() on all platforms where atomic increment is available instead of using InterlockedIncrement() only on Windows. {noformat} > split up rw/_mutex.h > -------------------- > > Key: STDCXX-563 > URL: https://issues.apache.org/jira/browse/STDCXX-563 > Project: C++ Standard Library > Issue Type: Improvement > Components: Build > Affects Versions: 4.2.0 > Reporter: Martin Sebor > Assignee: Farid Zaripov > Fix For: 4.2.1 > > Attachments: stdcxx-563.patch > > Original Estimate: 4h > Remaining Estimate: 4h > > The internal header has become too big and hard to maintain. It would be an improvement to split it up into multiple headers, one for each supported implementation of threads, along the lines of what was done with the header in http://svn.apache.org/viewvc?view=rev&revision=382600. This is too big to do for 4.2 but simple enough that it could go in 4.2.1. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.