Austin Beer
d259e0fde4
Increased the time thresholds on a bunch of tests to be more forgiving so they pass consistently on Windows.
...
Reduced the time thresholds on a bunch of tests that were TOO forgiving.
2017-10-11 21:40:38 -06:00
Austin Beer
7069c97a8b
Fixing lost notification bugs, part 1
...
- Updated all of the functions in all of the condition variable classes to ensure that they don't lose notifications
- Re-enabled notification tests
2017-10-11 10:03:04 -06:00
Vicente J. Botet Escriba
3b5d0c8d7f
fix meger issues from develop. Disable notification_lost test as need to be fixed for macos.
2017-10-11 09:32:19 +02:00
Austin Beer
c91c9e6d52
Added tests to check for lost notifications.
2017-10-10 12:06:29 -06:00
Peter Dimov
b86f9eda93
Try to disable std_thread_guard and std_scoped_thread tests on g++ 4.8
2017-10-09 01:40:42 +03:00
Alexander Karzhenkov
f67e6d4417
<threadapi> auto-detection has to be performed in Jamroot
2017-10-05 22:41:03 +05:00
Vicente J. Botet Escriba
e3f586836a
check > 480 instead of > 500.
2017-10-02 19:06:52 +02:00
Vicente J. Botet Escriba
3479524845
trace elapsed time.
2017-10-02 13:18:33 +02:00
Vicente J. Botet Escriba
b94c36f960
move to 650 ms to see if the test pass.
2017-10-02 08:41:39 +02:00
Vicente J. Botet Escriba
9f7e37c892
Merge branch 'develop' into feature/timespec_clocks
2017-10-01 13:28:57 +02:00
Vicente J. Botet Escriba
75d5ebbea5
uncomment dependency from test jamfile to threadapi to see if we get a gree CI on windows.
2017-09-30 13:44:28 +02:00
Austin Beer
659d309206
Re-enabled tests on Windows that had been temporarily disabled.
2017-09-29 15:53:21 -06:00
Austin Beer
35d25851ce
* Reverted some of my Windows updates to get a condition variable test on Windows to pass again. Further analysis is needed to determine why the updates didn't work.
...
* Increased the range of one test so it passes on Windows.
2017-09-29 14:52:42 -06:00
Austin Beer
51e6e654e3
Re-disabled the three move_ctor_upgrade_lock tests on Windows that are still failing.
2017-09-29 02:17:58 -06:00
Vicente J. Botet Escriba
71bc9c855d
comment dependencies to threadapi feature on test/Jamfile to show that there is no impact.
2017-09-29 08:43:30 +02:00
Austin Beer
a2e037bb54
Fixes and Cleanup
...
- Fixed build failures on Windows. The timespec struct is not supported by older versions of Visual Studio. I changed the internal representation inside of the *_timespec_timepoint classes to a boost::intmax_t representing the number of nanoseconds since the epoch.
- Fixed some functions that wouldn't execute at all if they were provided a negative time duration or an absolute time that was in the past. From what I understand, they should instead execute once and then return immediately.
- Moved pthread/timespec.hpp to detail/timespec.hpp.
- Deleted detail/internal_clock.hpp and moved the seven relevant lines into detail/timespec.hpp. This keeps all of the internal clock declarations in one place.
- Renamed thread_detail::internal_clock_t to detail::internal_chrono_clock to be consistent with and yet clearly differentiated from detail::internal_timespec_clock.
- Removed "using namespace chrono" to eliminate ambiguious namespace resolution when referencing detail::internal_chrono_clock.
- Re-enabled a few tests on Windows that had previously been disabled. I want to see whether or not they still need to be disabled.
2017-09-28 22:27:37 -06:00
Vicente J. Botet Escriba
e9ce83b399
Merge pull request #160 from karzhenkov/fix-threadapi-detection
...
Auto-detection of <threadapi> based on <target-os>
2017-09-28 23:50:38 +02:00
Alexander Karzhenkov
9c1c372067
<threadapi> is now optional; detection rules moved to "threadapi.jam"
2017-09-28 01:25:17 +05:00
Vicente J. Botet Escriba
46c1ae6f96
Merge branch 'develop' into feature/timespec_clocks
2017-09-26 05:55:40 +02:00
Vicente J. Botet Escriba
de4ee72554
disable some failing unique_lock/upgrade_lock tests on windows.
2017-09-24 20:21:43 +02:00
Vicente J. Botet Escriba
ad5ea75ddd
disable tsome failing unique_lock/upgrade_lock tests on windows.
2017-09-24 19:38:34 +02:00
Daniela Engert
4e83359537
fix or silence (msvc) compiler warnings about constant conditional expressions, unused parameters, narrowing, unreachable code, use of 'this' in base member initializations, and some other minor stuff
...
Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-09-24 14:02:17 +02:00
Alexander Karzhenkov
ab3da91e67
Auto-detection logic for <threadapi> added to "test/Jamfile.v2"
2017-09-23 21:52:48 +05:00
Vicente J. Botet Escriba
981e993d40
Adjust time constraint to windows.
2017-09-21 08:02:22 +02:00
Vicente J. Botet Escriba
4329e5be07
Merge pull request #150 from boostorg/feature/promise_deferred
...
Feature/promise deferred
2017-09-19 23:42:08 +02:00
Vicente J. Botet Escriba
48a2a960da
remove some warnings.
2017-09-19 03:20:46 +02:00
Vicente J. Botet Escriba
728c8f9507
woraround for msvc <= 1900
2017-09-19 03:17:14 +02:00
Vicente J. Botet Escriba
d0db967e3b
Merge branch 'develop' of github.com:boostorg/thread into develop
2017-09-19 00:13:57 +02:00
Vicente J. Botet Escriba
d40e0faceb
Merge branch 'develop' into feature/promise_deferred
2017-09-18 18:42:48 +02:00
Vicente J. Botet Escriba
aa2fea2250
disable dequeue_views/queue_views tests if < _MSC_VER < 1910
2017-09-18 13:11:57 +02:00
Vicente J. Botet Escriba
a759fc693d
replace bad character by white space.
2017-09-18 08:22:37 +02:00
Vicente J. Botet Escriba
65989edb97
Added promise deferred functions.
2017-09-18 02:22:49 +02:00
Vicente J. Botet Escriba
1c85a84474
try to silent issues with msvc 12.0 and devector.
2017-09-18 00:15:35 +02:00
Edward Diener
dfb64a5af5
Removed executable attribute.
2017-09-17 08:51:10 -04:00
Vicente J. Botet Escriba
c689b6205c
Merge pull request #146 from shinobu-x/sk_scheduling_adaptor_fix_001
...
Inappropriate class name
2017-09-16 14:50:28 +02:00
Shinobu Kinjo
03431ae64f
modified: include/boost/thread/executors/scheduling_adaptor.hpp
...
modified: test/test_scheduling_adaptor.cpp
2017-09-16 15:41:18 +09:00
Vicente J. Botet Escriba
3ee73c866d
INcrease the threashold of spourious timeouts.
2017-08-28 09:15:39 +02:00
Vincent Hsu
603689372c
Fix sync_bounded_queue<>::size()
2017-05-10 13:12:01 +08:00
Vicente J. Botet Escriba
c251497758
Avoid throwing on destructor: condition_variable.
2017-05-06 12:09:23 +02:00
Vicente J. Botet Escriba
21458fcc67
Add missing iostream.
2017-04-29 17:56:32 +02:00
Vicente J. Botet Escriba
8dfa7c2e42
fix issue throw() noexcept issue.
2017-04-29 16:14:41 +02:00
Vicente J. Botet Escriba
da83662e1a
added test for 12949.
2017-04-29 16:11:31 +02:00
Vicente J. Botet Escriba
496acc1161
disable some tests with C++98.
2017-02-28 23:29:28 +01:00
Christian Neumüller
74c98b7fab
loop_executor: (Re)activate and enhanche test.
2017-02-28 18:50:09 +01:00
Vicente J. Botet Escriba
9347d9b731
Added Thread parameter in scoped_thread and thread_guard classes.
2017-01-25 08:13:04 +01:00
Vicente J. Botet Escriba
fc748dbddf
12293- make the unwrap constructor explicit.
2016-08-20 09:27:47 +02:00
Vicente J. Botet Escriba
41f93eb513
Add test for 12293.
2016-08-09 02:49:23 +02:00
Zonr Chang
0f2fed0577
rename async_func.hpp to invoker.hpp.
...
This removes vestiges of commit 1d7da085
.
2016-07-26 16:07:29 +08:00
Vicente J. Botet Escriba
a45f36cbc6
Take in account possible issue while initializing cout. #12013
2016-02-28 19:26:38 +01:00
Vicente J. Botet Escriba
9f55587ab0
add missing detach in thread assignment V2. #11796 .
2015-12-05 14:49:13 +01:00
Vicente J. Botet Escriba
674e1304ef
take care of #11818 . deferred continuations should not wait too soon.
2015-11-24 22:58:08 +01:00
Vicente J. Botet Escriba
dbf0160b1e
uncomment previous failing fallback_to test.
2015-11-14 12:38:37 +01:00
Vicente J. Botet Escriba
aa608685af
rename centinel by sentinel. reset it as soon as the non deferred continuation is launched so that resources are released.
2015-11-11 00:31:59 +01:00
Vicente J. Botet Escriba
c0317c5206
Add return *this in invoker assignment.
2015-10-29 11:06:48 +01:00
Vicente J. Botet Escriba
b3d237731a
avoid Boost.Test.
2015-10-20 10:03:15 +02:00
Vicente J. Botet Escriba
805fa41a4e
try to fix issues with gcc-3.x.y with not supported -Wno-variadic-macros.
2015-10-18 18:50:34 +02:00
Vicente J. Botet Escriba
0e6376d93a
make async return a blocking future.
2015-10-18 18:47:24 +02:00
Vicente J. Botet Escriba
73053e4abe
merge from develop.
2015-10-17 10:51:50 +02:00
Vicente J. Botet Escriba
4169bcee44
Addoverloadsfor shared.
2015-10-17 00:40:53 +02:00
Vicente J. Botet Escriba
baf516e82f
comment serial conttest.
2015-10-17 00:40:23 +02:00
Vicente J. Botet Escriba
bf8459cf23
Merge from develop.
2015-10-11 23:34:45 +02:00
Vicente J. Botet Escriba
b8db8fef8b
Use parent executor ( #11716 ). Add promise::set_executor and packaged_task::set_executor ( #11717 ). Fix some move semantic issues C++03.
2015-10-11 19:56:38 +02:00
Vicente J. Botet Escriba
8afcbe22af
uncomment fixed test after merge from develop.
2015-09-30 00:08:16 +02:00
Vicente J. Botet Escriba
450f34daed
merge from develop.
2015-09-30 00:01:33 +02:00
Vicente J. Botet Escriba
2e17e028b1
use serial_executor instead of serial_executor_cont.
2015-09-08 21:55:48 +02:00
Vicente J. Botet Escriba
b332f17825
Added failing test for #11611 .
2015-09-02 22:39:26 +02:00
Vicente J. Botet Escriba
0143748de8
Add test_11499.
2015-08-21 18:37:08 +02:00
Vicente J. Botet Escriba
8c974800f9
try to remove yet more warnings.
2015-06-23 19:05:32 +02:00
Vicente J. Botet Escriba
6e002ae3ec
try to remove more warnings.
2015-06-21 23:09:15 +02:00
Vicente J. Botet Escriba
55c21919fc
try to remove some warnings.
2015-06-21 17:37:30 +02:00
Vicente J. Botet Escriba
958b773d05
Merge from develop.
2015-05-18 22:35:17 +02:00
Vicente J. Botet Escriba
aafd5ca726
applie patch for #11266 .
2015-05-15 15:05:09 +02:00
Vicente J. Botet Escriba
259c08473d
Merge branch 'develop' of github.com:boostorg/thread into develop
2015-05-14 18:08:52 +02:00
Vicente J. Botet Escriba
58e8addad6
Try to get rid of bad link issue while defining global new.
2015-05-06 13:51:21 +02:00
Jessica Hamilton
c0afe2d873
Tests: correct #error message in recursive_mutex/native_handle_pass
2015-05-06 02:14:13 +12:00
Vicente J. Botet Escriba
131c92a7d8
propagate unwrap fixes.
2015-05-04 00:19:12 +02:00
Vicente J. Botet Escriba
b7b2a463cf
fix issue with unwrap shared state.
2015-05-03 22:32:17 +02:00
Vicente J. Botet Escriba
c50d0ac4ba
try to fix issue with continuation on unwrap shared state.
2015-05-03 16:51:41 +02:00
Vicente J. Botet Escriba
5205fa71bf
Fixed some missing lock.unlock().
2015-05-03 14:30:52 +02:00
Vicente J. Botet Escriba
650956bd3b
First draft of non-blocking. Fixed issue with basic_thread_pool scoped threads. Now when the result of async(ex,f) is not stored, there is a lifetime issue with shared_state_nullary_task use of direct pointer to the shared state, however there is some weak_ptr issues :(.
2015-05-03 10:13:08 +02:00
Vicente J. Botet Escriba
e598796eaf
Add assertion on future continuation parameter is ready. As noted in #11256 , there some serious issues with the parameter passed and with lock on locked mutextes :(.
2015-05-02 16:29:06 +02:00
Vicente J. Botet Escriba
74f479d5c9
Fix non_copyable class in queue/dequeue view tests.
2015-03-29 19:34:28 +02:00
Vicente J. Botet Escriba
dbf793e7eb
Don't execute test for launch::deferred if BOOST_THREAD_PROVIDES_VARIADIC_THREAD is not defined.
2015-03-29 19:28:05 +02:00
Vicente J. Botet Escriba
ba2f814342
Don't lock while storing the exception_ptr list as only the task_region thread can do it.
2015-03-16 08:41:04 +01:00
Vicente J. Botet Escriba
331f0b9325
Added test for future<T&>::get_or.
2015-03-10 07:54:09 +01:00
Vicente J. Botet Escriba
0653efff3d
Added this_executor and default_executor examples.
2015-03-01 18:53:11 +01:00
Vicente J. Botet Escriba
c678b3794b
Crash issue while calling run_thread_exit_callbacks. Related to #11053 .
2015-03-01 01:37:35 +01:00
Vicente J. Botet Escriba
b8763b05ad
Add missing push(movable&&) and Run some failing tests that work when BOOST_NO_CXX11_RVALUE_REFERENCES is not defined.
2015-02-28 12:35:42 +01:00
Vicente J. Botet Escriba
3755af2063
Run some failing tests that work when BOOST_NO_CXX11_RVALUE_REFERENCES is not defined.
2015-02-28 12:35:23 +01:00
Vicente J. Botet Escriba
25310eaf7c
make use of nullary_function<void()> as work for timed schedulers (priority_queue) on C++11.
2015-02-22 23:44:34 +01:00
Vicente J. Botet Escriba
1ae96b3820
Merge branch 'develop' into fix/blocking_future
2015-02-20 14:34:55 +01:00
Vicente J. Botet Escriba
889c178173
fix issues with fallback_to. The route cause was that the original future was locked after destruction. This was more evident when the future was already ready when future::then was called.
2015-02-20 14:34:33 +01:00
Vicente J. Botet Escriba
7ba9591015
first trial towards a work=nullary_function<void() const>.
2015-02-20 10:20:38 +01:00
Vicente J. Botet Escriba
63fb28c7d4
Merge branch 'develop' into fix/blocking_future
2015-02-19 10:36:20 +01:00
Vicente J. Botet Escriba
e715d74a95
use a different name for serial_executor continuation as it add more constraints.
2015-02-19 10:30:25 +01:00
Vicente J. Botet Escriba
821a93ca1a
first draft for serial_executor based on continuations.
2015-02-17 19:09:56 +01:00
Vicente J. Botet Escriba
a4e7eba1d4
cleanup.
2015-02-11 07:05:10 +01:00
Vicente J. Botet Escriba
67778b3278
fix shared_future::then, get and get_or.
2015-02-10 00:01:28 +01:00
Vicente J. Botet Escriba
a5e6952a95
merge from develop - coamesced timers.
2015-02-09 13:08:55 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
84e2b7869d
Merge branch 'develop' of github.com:boostorg/thread into develop
2015-02-04 13:58:30 +00:00