Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85840 - trunk/libs/thread/src/pthread
From: vicente.botet_at_[hidden]
Date: 2013-09-22 18:22:09


Author: viboes
Date: 2013-09-22 18:22:08 EDT (Sun, 22 Sep 2013)
New Revision: 85840
URL: http://svn.boost.org/trac/boost/changeset/85840

Log:
Thread: make code uniform heap_new/heap_delete pairwise.

Text files modified:
   trunk/libs/thread/src/pthread/thread.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/thread/src/pthread/thread.cpp
==============================================================================
--- trunk/libs/thread/src/pthread/thread.cpp Sun Sep 22 18:16:45 2013 (r85839)
+++ trunk/libs/thread/src/pthread/thread.cpp 2013-09-22 18:22:08 EDT (Sun, 22 Sep 2013) (r85840)
@@ -217,7 +217,7 @@
 
         thread_data_base* make_external_thread_data()
         {
- thread_data_base* const me(new externally_launched_thread());
+ thread_data_base* const me(detail::heap_new<externally_launched_thread>());
             me->self.reset(me);
             set_current_thread_data(me);
             return me;
@@ -670,7 +670,7 @@
         {
             detail::thread_data_base* const current_thread_data(get_or_make_current_thread_data());
             thread_exit_callback_node* const new_node=
- new thread_exit_callback_node(func,current_thread_data->thread_exit_callbacks);
+ heap_new<thread_exit_callback_node>(func,current_thread_data->thread_exit_callbacks);
             current_thread_data->thread_exit_callbacks=new_node;
         }
 


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