Update of /cvsroot/boost/boost/libs/asio/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6071/libs/asio/test

Modified Files:
        strand_test.cpp 
Log Message:
Change strand implementation so that dispatch will execute a handler
immediately if called from within the strand.

Add hook function for customising handler dispatch.

Need to use reinterpret_cast when testing for enable_connection_aborted
socket option, to allow non-int socket options to compile correctly.


Index: strand_test.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/asio/test/strand_test.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- strand_test.cpp     14 Jun 2006 22:26:35 -0000      1.1
+++ strand_test.cpp     5 Jul 2006 05:48:10 -0000       1.2
@@ -47,8 +47,8 @@
   s->dispatch(boost::bind(increment, count));
 
   // The current function already holds the strand's lock, so the
-  // previous call to dispatch should not have nested.
-  BOOST_CHECK(*count == original_count);
+  // previous call to dispatch should have successfully nested.
+  BOOST_CHECK(*count == original_count + 1);
 }
 
 void sleep_increment(io_service* ios, int* count)


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to