From commits-return-3074-apmail-stdcxx-commits-archive=stdcxx.apache.org@stdcxx.apache.org Tue Jun 10 11:16:33 2008 Return-Path: Delivered-To: apmail-stdcxx-commits-archive@www.apache.org Received: (qmail 16306 invoked from network); 10 Jun 2008 11:16:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jun 2008 11:16:33 -0000 Received: (qmail 25754 invoked by uid 500); 10 Jun 2008 11:16:36 -0000 Delivered-To: apmail-stdcxx-commits-archive@stdcxx.apache.org Received: (qmail 25737 invoked by uid 500); 10 Jun 2008 11:16:36 -0000 Mailing-List: contact commits-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 commits@stdcxx.apache.org Received: (qmail 25728 invoked by uid 99); 10 Jun 2008 11:16:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2008 04:16:36 -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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2008 11:15:54 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D3A5D23889F7; Tue, 10 Jun 2008 04:16:11 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r666064 - /stdcxx/branches/4.2.x/src/once.h Date: Tue, 10 Jun 2008 11:16:11 -0000 To: commits@stdcxx.apache.org From: faridz@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080610111611.D3A5D23889F7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: faridz Date: Tue Jun 10 04:16:11 2008 New Revision: 666064 URL: http://svn.apache.org/viewvc?rev=666064&view=rev Log: 2008-06-10 Farid Zaripov * src/once.h [_RWSTD_MSVC] (__rw_once): Added comment about exception specifications. Modified: stdcxx/branches/4.2.x/src/once.h Modified: stdcxx/branches/4.2.x/src/once.h URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/src/once.h?rev=666064&r1=666063&r2=666064&view=diff ============================================================================== --- stdcxx/branches/4.2.x/src/once.h (original) +++ stdcxx/branches/4.2.x/src/once.h Tue Jun 10 04:16:11 2008 @@ -140,6 +140,13 @@ #else + // MSVC by default assumes that C function doesn't throws any exception + // and issues warning "function assumed not to throw an exception but does". + // Explicitly specified exception specification resolves this problem + // Note: any C function, passed as parameter in __rw_once() also should be defined + // with appropriate exception specification if it throws an exception, to avoid + // resourse leaks due to not invoked destructors of automatic objects, located + // in this function. _RWSTD_EXPORT int __rw_once (__rw_once_t*, void (*)() throw (...)) throw (...);