2
0
mirror of https://github.com/boostorg/thread.git synced 2026-02-22 03:42:07 +00:00

Fixed thread join bugs. Fixed mutex creation bugs.

[SVN r18176]
This commit is contained in:
William E. Kempf
2003-04-03 22:56:50 +00:00
parent 46b1a4d1e3
commit c1283bb731
5 changed files with 84 additions and 155 deletions

View File

@@ -13,6 +13,8 @@
#include <boost/thread/xtime.hpp>
#include <boost/test/unit_test.hpp>
#include <iostream>
#define DEFAULT_EXECUTION_MONITOR_TYPE execution_monitor::use_sleep_only
#include "util.inl"
@@ -20,6 +22,7 @@ int test_value;
void simple_thread()
{
std::cout << "simple_thread()";
test_value = 999;
}
@@ -232,8 +235,8 @@ boost::unit_test_framework::test_suite* init_unit_test_suite(int, char*[])
test->add(BOOST_TEST_CASE(test_sleep));
test->add(BOOST_TEST_CASE(test_creation));
test->add(BOOST_TEST_CASE(test_comparison));
test->add(BOOST_TEST_CASE(test_join));
test->add(BOOST_TEST_CASE(test_comparison));
test->add(BOOST_TEST_CASE(test_cancel));
test->add(BOOST_TEST_CASE(test_thread_attributes));
test->add(BOOST_TEST_CASE(test_thread_priority));