Daniel James
9e425a943b
Branch to work on filename handling without disturbing trunk.
...
[SVN r68345]
2011-01-21 09:17:08 +00:00
Hartmut Kaiser
5ac2ff4521
Reverted accidental commit, sorry...
...
[SVN r67895]
2011-01-09 22:21:03 +00:00
Hartmut Kaiser
8565a3e472
Spirit: replaced proto::lit with spirit::lit
...
[SVN r67754]
2011-01-07 17:50:06 +00:00
Anthony Williams
3648bc8cb0
Throw condition_error if pthread_cond_wait fails, rather than asserting
...
[SVN r67734]
2011-01-06 22:49:41 +00:00
Anthony Williams
73121eda9d
Better fix for #4736 --- ensure we have tried to allocate TLS value
...
before complaining that it's not there, especially in native threads
[SVN r66518]
2010-11-12 09:11:22 +00:00
Anthony Williams
768e92b0e9
Added comment about lack of cleanup on native threads on some platforms
...
[SVN r66480]
2010-11-10 10:02:42 +00:00
Anthony Williams
98333b7dcf
fix for issue #4736 --- avoid setting tls data after the key has been destroyed
...
[SVN r66471]
2010-11-09 12:54:23 +00:00
Anthony Williams
4e0007780c
Fix for issue #2330 - remove race condition in condition_variable::wait wrt interruption checking
...
[SVN r66228]
2010-10-28 14:18:00 +00:00
Anthony Williams
10f0c3e08e
Fix for issue #4531 --- promise::lazy_init uses shared_ptr atomic access functions to avoid race
...
[SVN r66146]
2010-10-22 14:01:12 +00:00
Anthony Williams
fa2950a04b
Fix for #4650 --- put tss_cleanup_implemented in the boost namespace
...
[SVN r66142]
2010-10-22 09:58:33 +00:00
Anthony Williams
ebfb62ca49
Fixed issue #4727 --- only use microsec clock if available
...
[SVN r66141]
2010-10-22 09:26:15 +00:00
Anthony Williams
96023e81af
Fix for issue #4258 --- static linking now works with recent versions of the mingw runtime
...
[SVN r66140]
2010-10-22 08:57:19 +00:00
Andrey Semashev
9c07d0ff5d
Fixed compilation with MSVC and, probably, other compilers.
...
[SVN r64996]
2010-08-25 15:25:16 +00:00
Anthony Williams
72a85b396c
Fix for issue #4368 --- ensure mutex is destroyed if setattr call fails
...
[SVN r63799]
2010-07-09 22:00:51 +00:00
Anthony Williams
87786091bb
Tidied up call_once to remove unused throw_count stuff
...
[SVN r63796]
2010-07-09 21:21:48 +00:00
Anthony Williams
784494274b
Fix for issue #4225 to allow static initialization of boost::once_flag
...
[SVN r63795]
2010-07-09 21:15:57 +00:00
Anthony Williams
68012dd92c
Fix for issue #4413 --- allow wait_for_any to work with empty ranges
...
[SVN r63790]
2010-07-09 19:18:16 +00:00
Anthony Williams
e40be775fe
Ensure futures and shared_mutex work on MSVC-10; fix for issue #2501
...
[SVN r63750]
2010-07-08 15:25:45 +00:00
Anthony Williams
64e6924132
Moved the test for _GNU_SOURCE to last to try and fix issue #4395
...
[SVN r63701]
2010-07-06 15:12:21 +00:00
Anthony Williams
4bbf47086d
Added missing "typename"
...
[SVN r63651]
2010-07-05 14:37:13 +00:00
Anthony Williams
7c674bc255
Added overload for swap member function that takes an lvalue reference
...
in all cases
[SVN r63650]
2010-07-05 14:35:45 +00:00
Steven Watanabe
6b9a2d791b
Protect get_thread_info from macro expansion to prevent errors on Haiku. Fixes #4341 .
...
[SVN r63295]
2010-06-24 19:38:16 +00:00
Steven Watanabe
4551e8759b
Use __SUNPRO_CC instead of SUNPRO_CC. Fixes #4363 .
...
[SVN r63216]
2010-06-22 01:59:23 +00:00
Daniel James
9442976bdb
Update various libraries' documentation build.
...
Mostly to use the images and css files under doc/src instead of
doc/html, usually be deleting the settings in order to use the defaults.
Also add 'boost.root' to some builds in order to fix links which rely on
it.
[SVN r63146]
2010-06-20 18:00:48 +00:00
Steven Watanabe
8d07df176f
Fix non-friend stream operator of thread::id
...
[SVN r62804]
2010-06-11 14:49:07 +00:00
Steven Watanabe
4b22aff33e
Add old auto-link macro for backwards compatibility.
...
[SVN r62802]
2010-06-11 14:38:28 +00:00
Anthony Williams
93dee254d0
Don't use windows threads if BOOST_DISABLE_WIN32 defined. Fix for
...
issue #3760
[SVN r62723]
2010-06-10 08:43:10 +00:00
Anthony Williams
a29b598205
Fix for issue #3761 --- if define operator<< for thread::id outside
...
the class if not supported inside.
[SVN r62722]
2010-06-10 08:34:52 +00:00
Anthony Williams
e3b20eaae9
Remove warnings. Fix for issue #3611
...
[SVN r62721]
2010-06-10 08:22:39 +00:00
Anthony Williams
d369fb0f94
Emulate recursive mutex if pthread_mutexattr_settype not
...
available. Fix for issue #2955
[SVN r62720]
2010-06-10 08:10:26 +00:00
Anthony Williams
d816bca42f
Only apply Sunpro workarounds for older compilers. Fix for issue #4071
...
[SVN r62719]
2010-06-10 07:43:17 +00:00
Anthony Williams
d6bb11c4e9
Added __cdecl to PVAPI. Fix for issue #1470
...
[SVN r62718]
2010-06-10 07:40:12 +00:00
Anthony Williams
2fdcefac05
Added static cast in move of upgrade_lock to work with MSVC10 and g++4.5
...
[SVN r62717]
2010-06-10 07:38:23 +00:00
Anthony Williams
044c3cc11e
Explicitly cast to rvalue reference in cast_to_rval so it works with
...
MSVC10 and g++4.5
[SVN r62715]
2010-06-10 07:36:57 +00:00
Anthony Williams
bd9223b525
Don't warn about long long usage with gcc. Fix for issue #3680
...
[SVN r62654]
2010-06-09 13:04:06 +00:00
Anthony Williams
347703dab2
Changed while(true) to for(;;) to avoid warnings. Fix for issue #3195
...
[SVN r62652]
2010-06-09 12:36:11 +00:00
Anthony Williams
f9a0e450e1
Removed thread_info_mutex as unnecessary and cause of potentially-throwing destructor. Fix for issue #3097
...
[SVN r62650]
2010-06-09 11:35:41 +00:00
Anthony Williams
f6b8cdd1f5
Use BOOST_THREAD_DYN_LINK instead of BOOST_THREAD_DYN_DLL for
...
compatibility with the rest of boost. Fix for issue #2874
[SVN r62643]
2010-06-09 08:55:09 +00:00
Anthony Williams
6727013302
Use time_duration::tick_type rather than long when calculating due
...
time to fix issue #4318
[SVN r62642]
2010-06-09 08:19:47 +00:00
Anthony Williams
cda12a2660
Added BOOST_THREAD_DECL to friend declaration of
...
this_thread::get_id. Fix for issue #4316
[SVN r62641]
2010-06-09 07:59:31 +00:00
Anthony Williams
c3c2072472
Added unimplemented default constructor to derived to avoid complaints
...
about the constructors of T in some compilers. Fix for issue #4317
[SVN r62639]
2010-06-09 07:52:25 +00:00
Anthony Williams
bfc226fdc0
Add extra braces to fix issue #4321
...
[SVN r62638]
2010-06-09 07:46:29 +00:00
Anthony Williams
fd28e1a7fb
Added missing #includes. Fix for issue #4322
...
[SVN r62637]
2010-06-09 07:40:09 +00:00
Anthony Williams
b11911f5e5
Moved thread startup and shutdown hooks to namespace boost
...
[SVN r62636]
2010-06-09 07:37:44 +00:00
Anthony Williams
a1587d070f
Replace use of noncopyable with private copy operations, issue #3244
...
[SVN r62633]
2010-06-09 06:58:35 +00:00
Anthony Williams
df2f43bc61
Added documentation for this_thread::sleep overload that takes a
...
system_time. see issue #3179
[SVN r62632]
2010-06-09 06:48:37 +00:00
Anthony Williams
895e8eea52
Added "inline" on system_time overload of timed_wait to fix issue #2747
...
[SVN r62631]
2010-06-09 06:42:57 +00:00
Anthony Williams
97d6249f3b
Added patch from issue #4305 --- limit SunCC workarounds to older versions
...
[SVN r62601]
2010-06-08 21:39:56 +00:00
Anthony Williams
7a8ed98eb5
Removed commented out code
...
[SVN r62564]
2010-06-08 13:06:58 +00:00
Anthony Williams
d611eece19
Updated tests for mutex members to handle range-based lock() and try_lock(), and fix issue #2704
...
[SVN r62562]
2010-06-08 12:06:03 +00:00
Anthony Williams
a99320f5a4
Updated get_due_time to handle the case where a "tick" is less than
...
100ns, trac issue #2447
[SVN r62555]
2010-06-08 08:40:46 +00:00
Anthony Williams
c97484943a
Check limits when attempting to lock shared_mutex --- trac issue #2293
...
[SVN r62553]
2010-06-08 07:28:53 +00:00
Anthony Williams
547d9bd844
Fix for issue #868 --- provide element_type typedef
...
[SVN r62552]
2010-06-08 07:11:28 +00:00
Anthony Williams
1a65aab05a
Applied patch from ticket 2918
...
[SVN r62505]
2010-06-07 09:08:09 +00:00
Anthony Williams
2e869aeb86
Added documentation for thread move assignment
...
[SVN r62504]
2010-06-07 09:04:54 +00:00
Anthony Williams
d729776575
Added documentation of thread move constructor
...
[SVN r62503]
2010-06-07 08:59:27 +00:00
Anthony Williams
895c436405
Fix for issue #4238 : timed_lock_upgrade should not call timed_lock
...
[SVN r62502]
2010-06-07 08:43:15 +00:00
Anthony Williams
4ae2932792
Fix copy constructor and copy-assignment operator for condition_variable_any
...
[SVN r62501]
2010-06-07 08:28:42 +00:00
Anthony Williams
a52be2bdbb
Consistently use count_type rather than unsigned for indexes into
...
future waiters vector
[SVN r62500]
2010-06-07 08:25:43 +00:00
Anthony Williams
31c4792216
Added missing inline
...
[SVN r62229]
2010-05-26 06:48:58 +00:00
Anthony Williams
39fd9c0b47
Fix for trac issue #3269
...
[SVN r62123]
2010-05-21 17:14:23 +00:00
Anthony Williams
9c25df3402
Sleeping for a negative time is same as sleeping for 0ms, fix for
...
issue #3178
[SVN r62122]
2010-05-21 16:59:56 +00:00
Anthony Williams
fb150b5038
Added support for BOOST_NO_IOSTREAM
...
[SVN r62119]
2010-05-21 15:19:06 +00:00
Anthony Williams
8cff3a167e
Added documentation for boost::move on thread objects
...
[SVN r62079]
2010-05-18 08:25:02 +00:00
Anthony Williams
2be1431f60
Test for __APPLE__ before _GNU_SOURCE so we can compile on Intel/Darwin
...
[SVN r62053]
2010-05-17 08:22:14 +00:00
Anthony Williams
255b7ed7f6
Fix for compile error win Sun CC 5.9
...
[SVN r61618]
2010-04-27 13:23:00 +00:00
Anthony Williams
58fd27399e
Added patch to fix issue #2501
...
[SVN r61429]
2010-04-20 15:02:47 +00:00
Anthony Williams
5f88ba1e47
Fix use of rvalue ref in futures
...
[SVN r60990]
2010-04-01 12:56:44 +00:00
Anthony Williams
ab569461d8
Modified boost::thread to work with MSVC10 RC
...
[SVN r59856]
2010-02-23 13:46:13 +00:00
Anthony Williams
7093fc670b
Disable templated rvalue ref constructor for MSVC10
...
[SVN r59758]
2010-02-19 09:54:00 +00:00
Anthony Williams
6f2b030253
Fixes to some uses of rvalue references; patch to avoid var size warnings on 64-bit platforms in future.hpp
...
[SVN r59752]
2010-02-18 21:54:46 +00:00
Anthony Williams
0e61e679af
Overload boost::move for thread& and thread&&
...
[SVN r59727]
2010-02-17 08:34:09 +00:00
Anthony Williams
b40998e1b5
Changed boost.thread to use BOOST_NO_RVALUE_REFERENCES rather than BOOST_HAS_RVALUE_REFS
...
[SVN r59699]
2010-02-16 14:57:30 +00:00
Anthony Williams
174d701bc3
Using BOOST_ASSERT rather than assert
...
[SVN r57940]
2009-11-26 09:35:31 +00:00
Anthony Williams
f2143d08b9
Added missing BOOST_THREAD_DECL for at_thread_exit_function
...
[SVN r57937]
2009-11-26 08:13:44 +00:00
Anthony Williams
1273e2620d
Don't use timed_lock to do a lock
...
[SVN r57936]
2009-11-26 08:13:01 +00:00
Anthony Williams
c719f6e37e
Added test and fix for issue 2742
...
[SVN r57925]
2009-11-25 11:05:55 +00:00
Anthony Williams
37922d8ce0
Added a wait call to new call_once
...
[SVN r57924]
2009-11-25 09:42:29 +00:00
Anthony Williams
7b79a31f40
A partial fix for issue #2100 : use boost::throw_exception for all exceptions except thread_interrupted
...
[SVN r57912]
2009-11-24 21:49:27 +00:00
Anthony Williams
9a09406f77
Ensure call_once event is correctly cleaned up
...
[SVN r57889]
2009-11-24 11:52:09 +00:00
Anthony Williams
9bdb778478
Only allocate an event if there is contention in call_once
...
[SVN r57882]
2009-11-24 09:59:21 +00:00
Anthony Williams
9621dafe46
Clarify note on call_once
...
[SVN r57862]
2009-11-23 11:31:08 +00:00
Anthony Williams
d7c9837844
Added a note highlighting that recursive use of call_once will cause deadlock.
...
[SVN r57861]
2009-11-23 11:24:53 +00:00
Anthony Williams
27bb7803ae
Update docs for at_thread_exit
...
[SVN r57380]
2009-11-04 21:38:45 +00:00
Anthony Williams
c0e1086f2c
More fixes for compilers with rvalue ref support
...
[SVN r57173]
2009-10-27 13:22:08 +00:00
Anthony Williams
ffa751c617
Fix for move assignment of unique_lock if rvalue refs supported
...
[SVN r57171]
2009-10-27 10:40:57 +00:00
Anthony Williams
b8ad60a2d6
Fix for bug #2067 --- use shared_mutex for thread_group rather than a simple mutex
...
[SVN r57169]
2009-10-27 09:45:53 +00:00
Anthony Williams
5db0aac816
Added futures to boost.thread
...
[SVN r57064]
2009-10-22 09:33:21 +00:00
Troy D. Straszheim
3fae7c5184
rm cmake from trunk. I'm not entirely sure this is necessary to satisfy the inspect script, but I'm not taking any chances, and it is easy to put back
...
[SVN r56942]
2009-10-17 02:07:38 +00:00
Anthony Williams
47889a8f22
boost.thread exception types are now header-only so some uses of boost.thread can be header only
...
[SVN r56019]
2009-09-04 19:55:31 +00:00
Troy D. Straszheim
8d22c3869b
Copyrights on CMakeLists.txt to keep them from clogging up the inspect
...
reports. This is essentially the same commit as r55095 on the release
branch.
[SVN r55159]
2009-07-26 00:49:56 +00:00
Vladimir Prus
235ed4afe0
Check _GNU_SOURCE before using get_nprocs.
...
The latter function is not POSIX, but a GNU extension and therefore
not available universally.
[SVN r54408]
2009-06-27 09:22:41 +00:00
Anthony Williams
627cb7f774
Fixed typo
...
[SVN r53412]
2009-05-29 20:48:07 +00:00
Anthony Williams
09021af350
Changed thread_specific_ptr to use a map for faster lookup, and erase empty nodes
...
[SVN r53389]
2009-05-29 11:34:25 +00:00
Anthony Williams
31c280d1fa
TSS cleanup not called for NULL data
...
[SVN r53388]
2009-05-29 11:05:01 +00:00
Anthony Williams
629f344f34
Test and fix for first part of issue #2797
...
[SVN r53387]
2009-05-29 10:57:39 +00:00
Anthony Williams
db5f924e24
Remove commented-out thread_group code
...
[SVN r53386]
2009-05-29 10:45:06 +00:00
Anthony Williams
9be3eb282a
Attempts to improve the boost::thread move semantics; separated tests to give clearer ID; incorporated patch to fix issue #2062
...
[SVN r53385]
2009-05-29 09:57:15 +00:00
John Maddock
effd891a16
Remove options that are no longer required and get the PDF docs building.
...
[SVN r51142]
2009-02-09 16:26:26 +00:00
Anthony Williams
13db35cbf5
Undo commit from r49977 which added extraneous throw to thread example
...
[SVN r49978]
2008-11-28 11:01:21 +00:00
Anthony Williams
0f2d480e3c
Added test for making std::thread work with std::vector
...
[SVN r49977]
2008-11-28 10:57:12 +00:00
Anthony Williams
9edc61e37b
Removed controversial catch(...) clauses from thread class
...
[SVN r49969]
2008-11-27 21:15:37 +00:00
Michael A. Jackson
f4dab6aac5
Updating CMake files to latest trunk. Added dependency information for regression tests and a few new macros for internal use.
...
[SVN r49627]
2008-11-07 17:02:56 +00:00
Michael A. Jackson
9e0550d140
Continuing merge of CMake build system files into trunk with the encouragement of Doug Gregor
...
[SVN r49510]
2008-11-01 13:15:41 +00:00
Anthony Williams
0d1701c509
Enhanced thread move tests
...
[SVN r49124]
2008-10-03 07:02:57 +00:00
Anthony Williams
f2f62f93ea
Test and fix for trac issue #2380 : return boost::move(some_thread) now works
...
[SVN r49112]
2008-10-02 16:39:03 +00:00
Anthony Williams
8a329f66fb
Renamed lock variables to lk to avoid name shadow warnings
...
[SVN r49013]
2008-09-29 16:32:24 +00:00
Anthony Williams
05d4c52918
fixed check on return code from pthread_mutex_timedlock
...
[SVN r48997]
2008-09-29 09:04:13 +00:00
Anthony Williams
8fd0dd0cc0
Define a raw DLL main which is called by the C runtime if we're statically linked into a DLL --- fix for issue #2199
...
[SVN r48537]
2008-09-02 16:56:57 +00:00
Anthony Williams
8eea5811ba
Don't allocate TLS Key unless we need it; deallocate it on process exit --- partial fix for bug #2199
...
[SVN r48536]
2008-09-02 16:54:56 +00:00
Anthony Williams
a154c2adab
Removed locked and get_active_count
...
[SVN r48531]
2008-09-02 10:38:17 +00:00
Anthony Williams
10bf4ed576
Removed locked and get_active_count
...
[SVN r48530]
2008-09-02 10:38:04 +00:00
Anthony Williams
60d12dd395
Added recursive_mutex/condition::wait() change to list of breaking changes
...
[SVN r48528]
2008-09-02 10:22:06 +00:00
Anthony Williams
b4e9be3c52
Added missing relative time constructor to unique_lock
...
[SVN r48213]
2008-08-19 10:26:53 +00:00
Anthony Williams
dcebae6d4a
Renamed internal bind stuff to invoker, as more expressive
...
[SVN r48209]
2008-08-19 07:03:22 +00:00
Anthony Williams
0d776bcd26
Updated changes list
...
[SVN r48037]
2008-08-08 20:37:30 +00:00
Anthony Williams
2d6ed47cf2
Updated signature of create_thread
...
[SVN r48036]
2008-08-08 20:21:29 +00:00
Anthony Williams
ea06434425
Doc updates missed by previous checkin
...
[SVN r47826]
2008-07-26 08:37:55 +00:00
Anthony Williams
6508eff95e
Added note about max number of arguments
...
[SVN r47818]
2008-07-25 22:22:58 +00:00
Anthony Williams
69930684a9
Added a description for the new thread constructors that allow functions with arguments.
...
[SVN r47817]
2008-07-25 22:21:05 +00:00
Anthony Williams
b1931a3eda
Fix for trac issue #2118
...
[SVN r47816]
2008-07-25 22:01:04 +00:00
Anthony Williams
63b44d4e32
Added documentation for the lock and try_lock free functions
...
[SVN r47815]
2008-07-25 21:57:33 +00:00
Anthony Williams
f7cb8d8141
Added a description for the scoped_try_lock typedefs
...
[SVN r47814]
2008-07-25 21:30:37 +00:00
Anthony Williams
48c857e02c
Fix for issue #2105 : specify which header to include for each class or function
...
[SVN r47810]
2008-07-25 21:12:29 +00:00
Anthony Williams
442dc58e0f
Use sysconf(_SC_NPROCESSORS_ONLN) where it is available, as a fallback
...
[SVN r47654]
2008-07-21 10:39:50 +00:00
Anthony Williams
25460c652c
Use sysconf to detect number of processors on AIX too
...
[SVN r47653]
2008-07-21 10:25:08 +00:00
Anthony Williams
31a98f0a1e
BOOST_NO_SFINAE isn't enough to identify compilers that can't auto-detect mutexes, so create a new macro for that, and add IBM and Sun compilers to list
...
[SVN r47652]
2008-07-21 10:04:26 +00:00
Anthony Williams
36c44b6f45
Borland-specific fixes should apply to all compilers for which enable_if is broken: check for BOOST_NO_SFINAE instead
...
[SVN r47554]
2008-07-18 13:42:10 +00:00
Anthony Williams
27426b18d1
Split lock and try_lock into mutex and range overloads without using enable_if, so it works on Borland compilers
...
[SVN r47472]
2008-07-16 14:41:09 +00:00
Anthony Williams
3ea9ce1c8c
Fixes to make basic thread functionality work with Borland compilers again
...
[SVN r47471]
2008-07-16 13:19:43 +00:00
Anthony Williams
4dfc636c84
test and fix for issue #2080
...
[SVN r47199]
2008-07-07 22:19:28 +00:00
Anthony Williams
5fe4312c6c
test and fix for issue #2081
...
[SVN r47197]
2008-07-07 22:04:10 +00:00
Anthony Williams
63e675a6bb
Corrected description to avoid reference to arguments
...
[SVN r47172]
2008-07-07 07:30:27 +00:00
Anthony Williams
e92aeac7d7
Added notify functions to class synopsis
...
[SVN r47171]
2008-07-07 07:28:32 +00:00
Anthony Williams
f1f7eac1f2
Backwards compatibility with xtime --- test and fix for issue #2052
...
[SVN r47149]
2008-07-06 21:58:11 +00:00
Anthony Williams
eff0c84553
Test and fix for issue #2076
...
[SVN r47120]
2008-07-05 21:55:36 +00:00
Anthony Williams
58c8ce61c7
Fix for issue #2065
...
[SVN r47077]
2008-07-04 15:45:52 +00:00
Anthony Williams
6ac5e6953a
Qualify everything with boost:: to try and avoid name clashes on AIX
...
[SVN r47070]
2008-07-04 07:30:35 +00:00
Anthony Williams
5d9ad59af2
Use rvalue refs for move semantics of unique_lock where available
...
[SVN r47033]
2008-07-03 09:16:49 +00:00
Anthony Williams
3c48a05437
Added try_lock_upgrade to shared_mutex: second half of #1867 fix
...
[SVN r46961]
2008-07-01 16:28:06 +00:00
Anthony Williams
4462124ff2
Added try_lock_upgrade to shared_mutex: second half of #1867 fix
...
[SVN r46960]
2008-07-01 16:27:59 +00:00
Anthony Williams
373f557ef7
Reduced thread counts to make tests run faster
...
[SVN r46958]
2008-07-01 16:22:47 +00:00
Anthony Williams
495e561398
Partial fix for issue #1867 - ensure boost::shared_mutex supports try_lock
...
[SVN r46956]
2008-07-01 16:04:51 +00:00
Anthony Williams
d24a579033
Partial fix for issue #1867 - ensure boost::shared_mutex supports try_lock
...
[SVN r46955]
2008-07-01 16:04:43 +00:00
Anthony Williams
77130424b4
Removed tabs from source files
...
[SVN r46706]
2008-06-26 06:43:30 +00:00
Anthony Williams
eb30688937
Added license and copyright to docs
...
[SVN r46705]
2008-06-26 06:41:00 +00:00
Anthony Williams
880bac0633
Added missing include of detail/config.hpp
...
[SVN r46624]
2008-06-23 12:14:58 +00:00
Anthony Williams
851d6a987f
Correctly remove the reference type when copying the thread function into the thread data area so we don't end up with a dangling reference
...
[SVN r46295]
2008-06-10 15:29:35 +00:00
Anthony Williams
9bebd7b35f
Disable general templated thread constructor for movable types, in order to prevent it trying to act as a thread copy constructor for EDG based compilers
...
[SVN r46273]
2008-06-09 14:00:03 +00:00
Anthony Williams
309acb9597
Don't try and use _interlockedbittestandset primitives if we don't know they're present
...
[SVN r46219]
2008-06-07 20:54:19 +00:00
Anthony Williams
a56887167e
Added swap for try_lock_wrapper
...
[SVN r46164]
2008-06-05 12:25:58 +00:00
Anthony Williams
e984dff4e4
Combined TSS header for pthread and win32, #1958 now fixed for pthread too
...
[SVN r46162]
2008-06-05 11:19:06 +00:00
Anthony Williams
685e4d446b
Test and fix for bug #1958 on Win32
...
[SVN r46161]
2008-06-05 11:16:05 +00:00
Anthony Williams
8af680f307
Added swap for unique_lock
...
[SVN r46160]
2008-06-05 10:39:08 +00:00
Anthony Williams
6c60cce60d
Removed partial initializer for res: both values will be assigned later, so no need to initialize either
...
[SVN r46124]
2008-06-04 16:05:29 +00:00
Anthony Williams
5882a675bb
Added extra initializer to timeout to try and eliminate warnings with some compilers
...
[SVN r46123]
2008-06-04 16:03:51 +00:00
Anthony Williams
a5e95845b3
Added documentation for swap()
...
[SVN r46122]
2008-06-04 16:00:13 +00:00
Anthony Williams
5b83d81e40
Added free function swap() for threads
...
[SVN r46121]
2008-06-04 15:50:34 +00:00
Anthony Williams
c8e5ad564d
basic_condition_variable::lock_entry extracted to basic_cv_lock_entry in order to try and eliminate problems on Borland compiler
...
[SVN r46094]
2008-06-03 20:56:39 +00:00
Anthony Williams
5edfa273ff
removed unused header
...
[SVN r46093]
2008-06-03 20:55:40 +00:00
Anthony Williams
4db57bcb10
Move thread_data to detail namespace rather than have it as a nested type of boost::thread, to try and help compilers that have problems with the partial specializations for reference_wrapper
...
[SVN r45912]
2008-05-29 15:38:08 +00:00
Anthony Williams
3f13340903
Don't construct function objects directly in boost::thread constructor as some compilers can't handle that.
...
[SVN r45911]
2008-05-29 15:36:52 +00:00
Anthony Williams
6abb53c9d3
Move definition of constructor and destructor of condition_variable into condition_variable_fwd.hpp, so they are always available
...
[SVN r45909]
2008-05-29 15:16:55 +00:00
Anthony Williams
fdd20a519e
Use wrapper functions in try_lock_wrapper rather than using declarations, as the latter confuse some compilers
...
[SVN r45908]
2008-05-29 15:16:04 +00:00
Anthony Williams
67cc49f333
More tests for generic locks, and a new range version
...
[SVN r45897]
2008-05-29 09:02:05 +00:00
Anthony Williams
31a34cd0b5
Added missing "no"
...
[SVN r45870]
2008-05-28 14:50:25 +00:00
Anthony Williams
ef8c08ba99
Removed surplus "the"
...
[SVN r45869]
2008-05-28 12:55:30 +00:00
Anthony Williams
2991ca6c6f
Added abi prefix and suffix headers
...
[SVN r45865]
2008-05-28 11:02:06 +00:00
Anthony Williams
52bace18b2
hardware_concurrency works for CYGWIN
...
[SVN r45860]
2008-05-28 09:38:14 +00:00
Anthony Williams
767d14ae4f
Added documentation for time support in the thread library
...
[SVN r45859]
2008-05-28 09:00:32 +00:00
Anthony Williams
1a5c911e36
Added documentation for time support in the thread library
...
[SVN r45858]
2008-05-28 09:00:23 +00:00
Anthony Williams
6e42a04e43
Added note about move support
...
[SVN r45856]
2008-05-28 08:09:07 +00:00
Anthony Williams
28be2cfeef
intrusive_ptr_add_ref and intrusive_ptr_release need to be inline if defined in the header
...
[SVN r45809]
2008-05-27 06:32:05 +00:00
Anthony Williams
8be168fd87
Basic tests for lock() when other thread is acquiring locks in same or opposite order
...
[SVN r45767]
2008-05-26 08:59:48 +00:00
Anthony Williams
eee95fef57
Initial test for generic lock functions
...
[SVN r45766]
2008-05-26 08:40:21 +00:00
Anthony Williams
9ea179b052
Initial test for generic lock functions
...
[SVN r45765]
2008-05-26 08:40:13 +00:00
Anthony Williams
6868280409
Try and avoid compile errors in test_thread_callable_object_one_argument
...
[SVN r45764]
2008-05-26 07:36:16 +00:00
Anthony Williams
e00b764454
The signature of _interlockedbittestandset changes between MSVC 2005 and MSVC 2008
...
[SVN r45689]
2008-05-23 19:53:06 +00:00
Anthony Williams
999613c686
Added note about mutex not being recursive
...
[SVN r45688]
2008-05-23 19:33:18 +00:00
Anthony Williams
c2661d7eb5
define intrusive_ptr_add_ref and intrusive_ptr_release at namespace scope rather than inline as friends in order to try and avoid compiler problems
...
[SVN r45682]
2008-05-23 15:18:19 +00:00
Anthony Williams
4d21dd1f47
try_lock_wrapper implements operator! in order to try and avoid compiler problems
...
[SVN r45681]
2008-05-23 15:17:14 +00:00
Anthony Williams
a0a0e57527
Fixed #ifdef to actually use BTS primitives on MSVC 9
...
[SVN r45676]
2008-05-23 13:16:01 +00:00
Anthony Williams
d8af0d0b4e
Reset thread_info on move rather than assigning 0
...
[SVN r45672]
2008-05-23 10:48:07 +00:00
Anthony Williams
113288e3b0
tidying up move
...
[SVN r45661]
2008-05-22 16:33:34 +00:00
Anthony Williams
afecfd7c2d
Refactored boost::thread code to try and remove duplication
...
[SVN r45647]
2008-05-22 11:49:48 +00:00
Anthony Williams
94d89aac5f
more rvalue reference stuff
...
[SVN r45626]
2008-05-21 21:11:30 +00:00
Anthony Williams
8831b13efc
Use lock_guard<> instead of unique_lock<> internally. Clear out generations after notify_all, as they're all notified
...
[SVN r45625]
2008-05-21 21:10:45 +00:00
Peter Dimov
01f99da03a
Extended boost::thread to 9 arguments, hopefully fixed member function ambiguity.
...
[SVN r45621]
2008-05-21 20:44:08 +00:00
Anthony Williams
080654e3ef
New tests for a normal function with one argument, and a member function with 0 or 1 arguments
...
[SVN r45607]
2008-05-21 13:38:04 +00:00
Anthony Williams
2ac2eb2a61
try_lock_wrapper has its own operator bool_type to avoid problems with a using declaration
...
[SVN r45602]
2008-05-21 10:39:47 +00:00
Anthony Williams
61b940b705
Renamed namespace user to user_test_ns to try and avoid a name clash on some platforms
...
[SVN r45601]
2008-05-21 09:51:53 +00:00
Anthony Williams
4a4f87e017
support for a generic lock() function
...
[SVN r45481]
2008-05-18 09:10:20 +00:00
Anthony Williams
6d5e7f63a7
Added beginnings of real rvalue-reference support
...
[SVN r45479]
2008-05-18 08:45:44 +00:00
Anthony Williams
f77285f375
Updated docs to make it explicit that terminate is called if a thread function throws an exception
...
[SVN r45294]
2008-05-12 09:04:02 +00:00
Anthony Williams
dc5d03a6dc
Cleaned up to remove warnings
...
[SVN r45244]
2008-05-09 07:59:57 +00:00
Anthony Williams
ea0961b7f6
Fixed type truncation warning
...
[SVN r45243]
2008-05-09 07:49:22 +00:00
Anthony Williams
33d9f9774c
Test and fix for bug #1905
...
[SVN r45242]
2008-05-09 07:48:44 +00:00
Anthony Williams
86097fa038
Use _WIN32 rather than WIN32 to prevent include of <unistd.h>
...
[SVN r45241]
2008-05-09 07:47:14 +00:00
Anthony Williams
70d9dbc45a
Added default constructor to lock types
...
[SVN r45212]
2008-05-08 14:34:40 +00:00
Anthony Williams
3926fd3a20
Added docs for native_handle
...
[SVN r45211]
2008-05-08 12:59:59 +00:00
Anthony Williams
7861cf1146
Added native_handle to mutex types where possible
...
[SVN r45210]
2008-05-08 12:59:10 +00:00
Anthony Williams
0516b86a6e
new BTS-based mutex implementation on win32
...
[SVN r45119]
2008-05-04 22:39:52 +00:00
Anthony Williams
ec735d3e9b
Simplified move support
...
[SVN r45108]
2008-05-04 09:52:54 +00:00
Anthony Williams
1c5c070983
Updated locks.hpp to work with gcc as well as msvc
...
[SVN r44846]
2008-04-28 12:26:27 +00:00
Anthony Williams
a5c02b73dc
Added entry to breaking changes about default-constructed threads and the current thread: issue #1835
...
[SVN r44840]
2008-04-28 09:10:38 +00:00
Anthony Williams
918b920670
Added detail::try_lock_wrapper for use as scoped_try_lock typedefs, to fix issue #1873
...
[SVN r44838]
2008-04-28 09:00:58 +00:00
Anthony Williams
de67d2e27e
Fixed g++ compile error
...
[SVN r44773]
2008-04-26 07:34:46 +00:00
Anthony Williams
bc89df04cb
Revamped condition variable to try and fix swallowed-notify problems (trac issue #1834 )
...
[SVN r44699]
2008-04-21 16:22:16 +00:00
Anthony Williams
c26a4cf082
added private copy assignment operator and copy constructor to remove warnings
...
[SVN r44698]
2008-04-21 16:20:31 +00:00
Anthony Williams
6e1a866b13
Fix for issue #1657
...
[SVN r44424]
2008-04-14 21:04:33 +00:00
Anthony Williams
f91986ad0d
Added extended adopt/defer/try constructors to upgrade_lock
...
[SVN r44370]
2008-04-13 15:50:08 +00:00
Anthony Williams
795cc23f3e
Added test and fix for win32 condition_variable broadcast bug similar to #1803
...
[SVN r44168]
2008-04-11 08:52:09 +00:00
Anthony Williams
a3695bd4a0
Updated thread.hpp as catch-all header
...
[SVN r44153]
2008-04-10 18:34:42 +00:00
Anthony Williams
08dc521daf
Added native_handle to condition_variable on pthreads
...
[SVN r44152]
2008-04-10 15:52:01 +00:00
Anthony Williams
8b916d21b1
added tests for plain timed_lock on shared_mutex
...
[SVN r44150]
2008-04-10 14:15:26 +00:00
Anthony Williams
c40f47a78a
added overloads of timed_lock_shared with a relative timeout to shared_mutex
...
[SVN r44149]
2008-04-10 14:07:39 +00:00
Anthony Williams
e9fb470b06
Added native_handle to thread on posix platforms
...
[SVN r44148]
2008-04-10 13:35:07 +00:00
Anthony Williams
343d049772
fix for trac ticket #1804
...
[SVN r44147]
2008-04-10 13:27:44 +00:00
Anthony Williams
86f9480da4
fix for notify problem in trac ticket #1803
...
[SVN r44146]
2008-04-10 13:14:43 +00:00
Anthony Williams
8696b610ca
Added test for trac ticket #1803 : condition_variable::notify_one may fail to wake a waiting thread on win32
...
[SVN r44136]
2008-04-09 19:33:06 +00:00
Anthony Williams
6f13227eda
Added locked-> owns_lock change to breaking changes
...
[SVN r44089]
2008-04-07 13:09:36 +00:00
Anthony Williams
58d5110e61
removed forward declaration for undefined type exclusive_lock
...
[SVN r43847]
2008-03-24 21:44:36 +00:00
Anthony Williams
76e53c7bc5
Removed some warnings: those from issue #1640 and others
...
[SVN r43730]
2008-03-19 17:25:13 +00:00
Anthony Williams
cfb08be1a8
New documentation for new thread library
...
[SVN r43671]
2008-03-17 10:29:27 +00:00
Anthony Williams
b5bbb7fb1c
Test and fix for bug #1693 to ensure thread_specific_ptr works as desired
...
[SVN r43666]
2008-03-17 08:36:09 +00:00
Anthony Williams
a76c33f8cc
made the callable_no_args function object a named object rather than a temporary, in order to avoid gratuitous breakage on some compilers
...
[SVN r43528]
2008-03-06 07:59:16 +00:00
Anthony Williams
810306b8f3
thread constructor now accepts up to three additional arguments to pass to thread function
...
[SVN r43464]
2008-03-03 10:52:44 +00:00
Anthony Williams
6c22bdb3bd
Test and fix for issue #1665
...
[SVN r43461]
2008-03-03 08:44:42 +00:00
Daniel James
6a0d3e98bc
Fix broken copyright urls. Fixes #1573 .
...
[SVN r43422]
2008-02-27 18:51:14 +00:00
Anthony Williams
3809321037
added test for duration overloads of timed_lock, and added missing implementation to win32 version
...
[SVN r43094]
2008-02-04 13:16:32 +00:00
Anthony Williams
eef695bdf0
Provide tss_cleanup_implemented as a dummy function on Windows CE to allow tests to run
...
[SVN r42818]
2008-01-16 15:23:36 +00:00
Anthony Williams
ab01ab1e4d
removed references to NULL
...
[SVN r42657]
2008-01-10 14:19:36 +00:00
Anthony Williams
c8d8a108a7
Updated thread ID test
...
[SVN r42228]
2007-12-21 10:54:59 +00:00
Anthony Williams
7afd9efcc5
added hardware_concurrency support for apple, freebsd and sun platforms
...
[SVN r42195]
2007-12-20 08:37:02 +00:00
Anthony Williams
56ded87ad2
added missing parentheses
...
[SVN r42194]
2007-12-20 07:46:00 +00:00
Anthony Williams
82e503339b
Implement hardware_concurrency for pthread
...
[SVN r42168]
2007-12-19 10:45:01 +00:00
Anthony Williams
713d0c7ace
Updated thread ID, and added tests
...
[SVN r42166]
2007-12-19 10:39:45 +00:00
Anthony Williams
25ad6e3f8f
boost::move support for locks
...
[SVN r42118]
2007-12-17 12:52:50 +00:00
Anthony Williams
df0197b617
Updated move function test to be fair to Borland
...
[SVN r42117]
2007-12-17 11:24:13 +00:00
Anthony Williams
a89c4f01ad
explicit move functions for threads, with a test
...
[SVN r42087]
2007-12-15 22:36:43 +00:00
Anthony Williams
ae67099633
added timed_wait overloads that take a duration
...
[SVN r42086]
2007-12-15 22:34:30 +00:00
Anthony Williams
57542d3a5c
fixed order of comparison in timeout check
...
[SVN r41819]
2007-12-07 08:11:11 +00:00
Anthony Williams
9a1da14116
improved timeout checks
...
[SVN r41741]
2007-12-05 10:58:45 +00:00
Anthony Williams
ed050d753d
added missing include of detail/config.hpp
...
[SVN r41738]
2007-12-05 08:27:44 +00:00
Anthony Williams
8bec363710
changed order of declaration to eliminate warnings
...
[SVN r41687]
2007-12-04 14:07:01 +00:00
Anthony Williams
7c68e190a9
Added test for thread move constructor; implemented move on pthreads
...
[SVN r41686]
2007-12-04 13:02:58 +00:00
Anthony Williams
7ebf5ea3d1
add explicit casts to remove warnings
...
[SVN r41684]
2007-12-04 12:08:38 +00:00
Anthony Williams
11e0435a4b
don't dllexport/dllimport inline functions
...
[SVN r41683]
2007-12-04 11:44:25 +00:00
Anthony Williams
d15ee57cd1
split shared mutex tests in two to take less time
...
[SVN r41682]
2007-12-04 10:04:30 +00:00
Anthony Williams
56d660b7fd
changed boost::move to boost::detail::thread_move to fix issue #1492
...
[SVN r41681]
2007-12-04 09:15:37 +00:00
Anthony Williams
792958e693
fixed typo in condition_variable_any::timed_wait
...
[SVN r41679]
2007-12-04 07:57:23 +00:00
Anthony Williams
914e67dc04
check predicate before returning if we time out on a predicated version of timed_wait
...
[SVN r41668]
2007-12-03 22:00:26 +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