BOOST_LWM_WIN32_USE_CRITICAL_SECTION option.

[SVN r12842]
This commit is contained in:
Peter Dimov
2002-02-16 18:45:20 +00:00
parent 6dfe0896e3
commit e6605637f8
2 changed files with 65 additions and 3 deletions
+7 -2
View File
@@ -19,6 +19,9 @@
#include <boost/shared_ptr.hpp>
#include <boost/bind.hpp>
#define BOOST_INCLUDE_MAIN
#include <boost/test/test_tools.hpp>
#include <vector>
#include <memory>
#include <stdexcept>
@@ -141,11 +144,11 @@ void test(boost::shared_ptr<int> const & pi)
int const m = 16; // threads
int main()
int test_main( int, char ** )
{
std::puts(title);
boost::shared_ptr<int> pi(new int);
boost::shared_ptr<int> pi(new int(42));
pthread_t a[m];
@@ -158,4 +161,6 @@ int main()
{
pthread_join(a[i], 0);
}
return 0;
}