Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r48954 - sandbox/thread_safe_signals/trunk/libs/signals2/test
From: fmhess_at_[hidden]
Date: 2008-09-24 15:46:33


Author: fmhess
Date: 2008-09-24 15:46:33 EDT (Wed, 24 Sep 2008)
New Revision: 48954
URL: http://svn.boost.org/trac/boost/changeset/48954

Log:
Updated test to reflect ThreadingModel->Mutex template type parameter
change in API.

Text files modified:
   sandbox/thread_safe_signals/trunk/libs/signals2/test/threading_models_test.cpp | 7 +++----
   1 files changed, 3 insertions(+), 4 deletions(-)

Modified: sandbox/thread_safe_signals/trunk/libs/signals2/test/threading_models_test.cpp
==============================================================================
--- sandbox/thread_safe_signals/trunk/libs/signals2/test/threading_models_test.cpp (original)
+++ sandbox/thread_safe_signals/trunk/libs/signals2/test/threading_models_test.cpp 2008-09-24 15:46:33 EDT (Wed, 24 Sep 2008)
@@ -11,8 +11,7 @@
 
 #include <boost/test/minimal.hpp>
 #include <boost/signals2.hpp>
-#include <boost/signals2/multi_threaded.hpp>
-#include <boost/signals2/single_threaded.hpp>
+#include <boost/thread/mutex.hpp>
 
 // combiner that returns the number of slots invoked
 struct slot_counter {
@@ -53,10 +52,10 @@
 int test_main(int, char*[])
 {
   typedef boost::signals2::signal<void (), slot_counter, int, std::less<int>, boost::function<void ()>,
- boost::signals2::multi_threaded> sig0_mt_type;
+ boost::mutex> sig0_mt_type;
   simple_test<sig0_mt_type>();
   typedef boost::signals2::signal<void (), slot_counter, int, std::less<int>, boost::function<void ()>,
- boost::signals2::single_threaded> sig0_st_type;
+ boost::signals2::dummy_mutex> sig0_st_type;
   simple_test<sig0_st_type>();
   return 0;
 }


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