Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72176 - trunk/libs/thread/src/pthread
From: anthony_at_[hidden]
Date: 2011-05-26 05:01:00


Author: anthonyw
Date: 2011-05-26 05:00:58 EDT (Thu, 26 May 2011)
New Revision: 72176
URL: http://svn.boost.org/trac/boost/changeset/72176

Log:
Put static functions inside extern "C" block rather than trying to declare each as extern "C"

Text files modified:
   trunk/libs/thread/src/pthread/once.cpp | 16 +++++++++-------
   1 files changed, 9 insertions(+), 7 deletions(-)

Modified: trunk/libs/thread/src/pthread/once.cpp
==============================================================================
--- trunk/libs/thread/src/pthread/once.cpp (original)
+++ trunk/libs/thread/src/pthread/once.cpp 2011-05-26 05:00:58 EDT (Thu, 26 May 2011)
@@ -22,16 +22,18 @@
             pthread_key_t epoch_tss_key;
             pthread_once_t epoch_tss_key_flag=PTHREAD_ONCE_INIT;
             
- extern "C" static void delete_epoch_tss_data(void* data)
+ extern "C"
             {
- free(data);
- }
+ static void delete_epoch_tss_data(void* data)
+ {
+ free(data);
+ }
 
- extern "C" static void create_epoch_tss_key()
- {
- BOOST_VERIFY(!pthread_key_create(&epoch_tss_key,delete_epoch_tss_data));
+ static void create_epoch_tss_key()
+ {
+ BOOST_VERIFY(!pthread_key_create(&epoch_tss_key,delete_epoch_tss_data));
+ }
             }
-
         }
         
         boost::uintmax_t& get_once_per_thread_epoch()


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk