2
0
mirror of https://github.com/boostorg/thread.git synced 2026-02-08 23:22:13 +00:00

Compare commits

..

15 Commits

Author SHA1 Message Date
Daniel James
c86959afb7 Fix links to the license text file.
[SVN r43289]
2008-02-17 12:49:59 +00:00
Daniel James
8b302dbb4f More fixed links.
[SVN r43279]
2008-02-16 11:39:55 +00:00
Daniel James
43943faf5c Merge.
[SVN r43162]
2008-02-07 18:54:14 +00:00
Daniel James
f934c01bdf Merge.
[SVN r42905]
2008-01-21 20:15:02 +00:00
Daniel James
5af025cdce Merge from trunk.
[SVN r42243]
2007-12-22 15:36:31 +00:00
Daniel James
1b56fe63d1 Merge from trunk.
[SVN r41865]
2007-12-08 11:05:02 +00:00
Daniel James
d460417a09 Merge from trunk, finally.
[SVN r41817]
2007-12-07 01:12:02 +00:00
Daniel James
67ce920ab8 Create a branch to fix links on.
[SVN r41573]
2007-12-02 10:07:42 +00:00
Anthony Williams
b50a7ccb61 interruptible_wait (and hence condition timed_wait) now uses a WaitableTimer where possible, to be robust in the face of clock changes
[SVN r41505]
2007-11-30 18:38:21 +00:00
Anthony Williams
f827709d42 add support for relative timeouts to condition timed_wait
[SVN r41413]
2007-11-27 14:24:29 +00:00
Anthony Williams
36abb42175 reverted accidental checkin of new timed_wait functions on condition_variable
[SVN r41405]
2007-11-26 21:15:04 +00:00
Anthony Williams
40f3b1b4c8 once_flag uses zero-initialization on POSIX as well as windows
[SVN r41401]
2007-11-26 17:01:08 +00:00
Anthony Williams
4f35e25688 fixed import/export declarations so new once code works with pthread-win32
[SVN r41398]
2007-11-26 15:44:07 +00:00
Anthony Williams
270e88edd7 Don't compare native_handle_t against 0 --- do appropriate checks in create_native_thread for platforms where pthread_t is not comparable
[SVN r41396]
2007-11-26 13:29:15 +00:00
Anthony Williams
5ded171247 workaround for Borland compiler
[SVN r41395]
2007-11-26 12:17:45 +00:00
5 changed files with 4 additions and 46 deletions

View File

@@ -45,7 +45,7 @@ last-revision="$Date$">
<biblioentry id="thread.bib.Boost">
<abbrev id="thread.bib.Boost.abbrev">Boost</abbrev>
<bibliomisc>The <emphasis>Boost</emphasis> world wide web site.
<ulink url="http:/www.boost.org">http://www.boost.org</ulink></bibliomisc>
<ulink url="http://www.boost.org">http://www.boost.org</ulink></bibliomisc>
<para>&Boost.Thread; is one of many Boost libraries. The Boost web
site includes a great deal of documentation and general information which
applies to all Boost libraries. Current copies of the libraries including

View File

@@ -52,7 +52,7 @@ namespace boost
void operator()(void* data)
{
cleanup_function(static_cast<T*>(data));
cleanup_function(data);
}
};

View File

@@ -51,7 +51,7 @@ namespace boost
void operator()(void* data)
{
cleanup_function(static_cast<T*>(data));
cleanup_function(data);
}
};

View File

@@ -6,7 +6,7 @@
#include <boost/thread/detail/config.hpp>
#if defined(BOOST_HAS_WINTHREADS) && (defined(BOOST_THREAD_BUILD_LIB) || defined(BOOST_THREAD_TEST)) && (!defined(_MSC_VER) || defined(UNDER_CE))
#if defined(BOOST_HAS_WINTHREADS) && (defined(BOOST_THREAD_BUILD_LIB) || defined(BOOST_THREAD_TEST) || defined(UNDER_CE)) && (!defined(_MSC_VER) || defined(UNDER_CE))
/*
This file is a "null" implementation of tss cleanup; it's

View File

@@ -187,54 +187,12 @@ void test_tss()
timed_test(&do_test_tss, 2);
}
bool tss_cleanup_called=false;
struct Dummy
{};
void tss_custom_cleanup(Dummy* d)
{
delete d;
tss_cleanup_called=true;
}
boost::thread_specific_ptr<Dummy> tss_with_cleanup(tss_custom_cleanup);
void tss_thread_with_custom_cleanup()
{
tss_with_cleanup.reset(new Dummy);
}
void do_test_tss_with_custom_cleanup()
{
boost::thread t(tss_thread_with_custom_cleanup);
try
{
t.join();
}
catch(...)
{
t.interrupt();
t.join();
throw;
}
BOOST_CHECK(tss_cleanup_called);
}
void test_tss_with_custom_cleanup()
{
timed_test(&do_test_tss_with_custom_cleanup, 2);
}
boost::unit_test_framework::test_suite* init_unit_test_suite(int, char*[])
{
boost::unit_test_framework::test_suite* test =
BOOST_TEST_SUITE("Boost.Threads: tss test suite");
test->add(BOOST_TEST_CASE(test_tss));
test->add(BOOST_TEST_CASE(test_tss_with_custom_cleanup));
return test;
}