Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58630 - trunk/boost/asio/detail
From: chris_at_[hidden]
Date: 2010-01-02 05:30:42


Author: chris_kohlhoff
Date: 2010-01-02 05:30:41 EST (Sat, 02 Jan 2010)
New Revision: 58630
URL: http://svn.boost.org/trac/boost/changeset/58630

Log:
Add boost_ prefix to extern "C" thread entry point function. Refs #3809.

Text files modified:
   trunk/boost/asio/detail/posix_thread.hpp | 8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/boost/asio/detail/posix_thread.hpp
==============================================================================
--- trunk/boost/asio/detail/posix_thread.hpp (original)
+++ trunk/boost/asio/detail/posix_thread.hpp 2010-01-02 05:30:41 EST (Sat, 02 Jan 2010)
@@ -37,7 +37,7 @@
 namespace asio {
 namespace detail {
 
-extern "C" void* asio_detail_posix_thread_function(void* arg);
+extern "C" void* boost_asio_detail_posix_thread_function(void* arg);
 
 class posix_thread
   : private noncopyable
@@ -50,7 +50,7 @@
   {
     std::auto_ptr<func_base> arg(new func<Function>(f));
     int error = ::pthread_create(&thread_, 0,
- asio_detail_posix_thread_function, arg.get());
+ boost_asio_detail_posix_thread_function, arg.get());
     if (error != 0)
     {
       boost::system::system_error e(
@@ -80,7 +80,7 @@
   }
 
 private:
- friend void* asio_detail_posix_thread_function(void* arg);
+ friend void* boost_asio_detail_posix_thread_function(void* arg);
 
   class func_base
   {
@@ -112,7 +112,7 @@
   bool joined_;
 };
 
-inline void* asio_detail_posix_thread_function(void* arg)
+inline void* boost_asio_detail_posix_thread_function(void* arg)
 {
   std::auto_ptr<posix_thread::func_base> f(
       static_cast<posix_thread::func_base*>(arg));


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