Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86429 - in trunk: boost/sync/condition_variables libs/sync/src
From: andrey.semashev_at_[hidden]
Date: 2013-10-25 12:51:18


Author: andysem
Date: 2013-10-25 12:51:18 EDT (Fri, 25 Oct 2013)
New Revision: 86429
URL: http://svn.boost.org/trac/boost/changeset/86429

Log:
Minor API cleanup.

Text files modified:
   trunk/boost/sync/condition_variables/notify_all_at_thread_exit.hpp | 4 ++--
   trunk/libs/sync/src/tss_pthread.cpp | 4 ++--
   trunk/libs/sync/src/tss_windows.cpp | 4 ++--
   3 files changed, 6 insertions(+), 6 deletions(-)

Modified: trunk/boost/sync/condition_variables/notify_all_at_thread_exit.hpp
==============================================================================
--- trunk/boost/sync/condition_variables/notify_all_at_thread_exit.hpp Fri Oct 25 12:35:13 2013 (r86428)
+++ trunk/boost/sync/condition_variables/notify_all_at_thread_exit.hpp 2013-10-25 12:51:18 EDT (Fri, 25 Oct 2013) (r86429)
@@ -32,7 +32,7 @@
 namespace detail {
 
 //! Adds a notification entry at thread termination
-BOOST_SYNC_API void add_thread_exit_notify_entry(sync::mutex* mtx, sync::condition_variable* cond);
+BOOST_SYNC_API void add_thread_exit_notify_entry(sync::mutex& mtx, sync::condition_variable& cond);
 
 } // namespace detail
 
@@ -53,7 +53,7 @@
 inline void notify_all_at_thread_exit(sync::condition_variable& cond, sync::unique_lock< sync::mutex > lock)
 {
     BOOST_ASSERT(lock.owns_lock());
- sync::detail::add_thread_exit_notify_entry(lock.mutex(), &cond);
+ sync::detail::add_thread_exit_notify_entry(*lock.mutex(), cond);
     lock.release();
 }
 

Modified: trunk/libs/sync/src/tss_pthread.cpp
==============================================================================
--- trunk/libs/sync/src/tss_pthread.cpp Fri Oct 25 12:35:13 2013 (r86428)
+++ trunk/libs/sync/src/tss_pthread.cpp 2013-10-25 12:51:18 EDT (Fri, 25 Oct 2013) (r86429)
@@ -96,7 +96,7 @@
 
 } // namespace
 
-BOOST_SYNC_API void add_thread_exit_notify_entry(sync::mutex* mtx, sync::condition_variable* cond)
+BOOST_SYNC_API void add_thread_exit_notify_entry(sync::mutex& mtx, sync::condition_variable& cond)
 {
     pthread_once(&init_tss_once_flag, &init_tss);
     tss_manager::thread_context* ctx = get_thread_context();
@@ -107,7 +107,7 @@
         set_thread_context(ctx);
     }
 
- ctx->add_notify_at_exit_entry(mtx, cond);
+ ctx->add_notify_at_exit_entry(&mtx, &cond);
 }
 
 BOOST_SYNC_API void add_thread_exit_callback(at_thread_exit_callback callback, void* context)

Modified: trunk/libs/sync/src/tss_windows.cpp
==============================================================================
--- trunk/libs/sync/src/tss_windows.cpp Fri Oct 25 12:35:13 2013 (r86428)
+++ trunk/libs/sync/src/tss_windows.cpp 2013-10-25 12:51:18 EDT (Fri, 25 Oct 2013) (r86429)
@@ -166,7 +166,7 @@
 
 } // namespace windows
 
-BOOST_SYNC_API void add_thread_exit_notify_entry(sync::mutex* mtx, sync::condition_variable* cond)
+BOOST_SYNC_API void add_thread_exit_notify_entry(sync::mutex& mtx, sync::condition_variable& cond)
 {
     init_tss_once();
     tss_manager::thread_context* ctx = get_thread_context();
@@ -177,7 +177,7 @@
         set_thread_context(ctx);
     }
 
- ctx->add_notify_at_exit_entry(mtx, cond);
+ ctx->add_notify_at_exit_entry(&mtx, &cond);
 }
 
 BOOST_SYNC_API void add_thread_exit_callback(at_thread_exit_callback callback, void* context)


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