Commit Graph

2706 Commits

Author SHA1 Message Date
Austin Beer
d60a11a75b Delete unused file: pthread/shared_mutex_assert.hpp 2017-10-26 07:53:15 -06:00
Austin Beer
cfd93c7747 Correct a fix that I previously implemented incorrectly 2017-10-26 07:52:42 -06:00
Vicente J. Botet Escriba
6d8c0676a1 Merge pull request #187 from Lastique/update_winapi
Update Boost.WinAPI usage to the new location and namespace
2017-10-25 19:36:05 +02:00
Andrey Semashev
343230cd78 Updated Boost.WinAPI usage to the new location and namespace. 2017-10-25 01:09:24 +03:00
Vicente J. Botet Escriba
44080a444c update release notes. 2017-10-24 21:02:01 +02:00
Vicente J. Botet Escriba
6d7bc558d0 Implement mono_platform_clock and mono_platform_timepoint fro MacOs. 2017-10-23 22:40:49 +02:00
Peter Dimov
65681f4033 Merge branch 'develop' 2017-10-21 05:45:52 +03:00
Vicente J. Botet Escriba
d345533596 move files from boost/detail to boost/thread/detail. 2017-10-19 18:14:37 +02:00
Vicente J. Botet Escriba
007738d22c Merge branch 'feature/timespec_clocks' of github.com:boostorg/thread into feature/timespec_clocks 2017-10-15 18:28:05 +02:00
Vicente J. Botet Escriba
6ddf6a8acf Merge pull request #180 from austin-beer/feature/timespec_clocks_pr19_no_int_sleep_on_win
Add and fix sleep functions
2017-10-15 18:27:19 +02:00
Vicente J. Botet Escriba
f9e97a68bb Merge branch 'feature/timespec_clocks' of github.com:boostorg/thread into feature/timespec_clocks 2017-10-15 10:17:12 +02:00
Vicente J. Botet Escriba
44d410f067 disable C4459 on msvc. 2017-10-15 10:14:39 +02:00
Vicente J. Botet Escriba
48ceff1e65 Merge pull request #179 from austin-beer/feature/timespec_clocks_pr18_use_pred_overloads
Fix shared_mutex and future time jump tests
2017-10-14 19:10:36 +02:00
Vicente J. Botet Escriba
883637e0f4 try to avoid warning c4244 for msvc. 2017-10-14 13:09:17 +02:00
Austin Beer
3c01e39481 Add and fix sleep functions
- Added no_interruption_point::sleep() functions to pthreads to be
  consistent with Windows.
- Fixed an issue where the no_interruption_point::sleep_*() functions
  were still interruptible on Windows.
2017-10-13 11:48:05 -06:00
Austin Beer
eef7293932 Updated pthread/shared_mutex and future to use predicate wait functions.
- This allowed these classes to take advantage of the time jump fixes in condition_variable.
Fixed a minor issue where, if a thread was waiting after calling one of the following functions and it timed out at the same time it was given the lock, it would return false (failure) rather than succeeding.
- mutex::timed_lock()
- mutex::try_lock_for()
- mutex::try_lock_until()
- recursive_mutex::timed_lock()
- recursive_mutex::try_lock_for()
- recursive_mutex::try_lock_until()
- shared_mutex::timed_lock_shared()
- shared_mutex::try_lock_shared_for()
- shared_mutex::try_lock_shared_until()
2017-10-13 11:47:46 -06:00
Austin Beer
b65b2f3fea Reverted future.hpp and pthread/shared_mutex.hpp back to the versions in the develop branch. This discarded all changes made to these two files in the feature/timespec_clocks branch to date. 2017-10-13 11:47:46 -06:00
Vicente J. Botet Escriba
d70e1aad77 Merge pull request #178 from austin-beer/feature/timespec_clocks_pr17
Update tests to consistently pass on Windows (hopefully)
2017-10-13 19:35:52 +02:00
Austin Beer
2272e9e3f5 Updated more tests to pass consistently on Windows. 2017-10-12 10:48:01 -06:00
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
Vicente J. Botet Escriba
ac99313228 Merge pull request #177 from austin-beer/feature/timespec_clocks_pr16
Fixing lost notification bugs, part 1 (again)
2017-10-11 22:08:25 +02: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
Vicente J. Botet Escriba
d2498547a7 Merge pull request #176 from austin-beer/feature/timespec_clocks_pr15
Added tests to check for lost notifications.
2017-10-11 08:31:56 +02:00
Austin Beer
c91c9e6d52 Added tests to check for lost notifications. 2017-10-10 12:06:29 -06:00
Vicente J. Botet Escriba
e47081faa7 Merge pull request #174 from boostorg/pr/fix-gcc48-failures
Try to fix Travis failures with the built-in g++ 4.8
2017-10-09 07:39:02 +02: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
Peter Dimov
4d26e4a07f Add default g++ tester to Travis 2017-10-09 00:36:42 +03:00
Vicente J. Botet Escriba
f329ba3540 Add more AppVeyors testers, in particular cygwin (Adapted from Boost.Integer). 2017-10-08 17:25:21 +02:00
Vicente J. Botet Escriba
adbd9c8d4c Add more AppVeyors testers, in particular cygwin (Adapted from Boost.Integer). 2017-10-08 17:21:54 +02:00
Vicente J. Botet Escriba
b12858610a Merge pull request #172 from karzhenkov/fix-threadapi-detection-2
Move <threadapi> definition to Boost.Build
2017-10-07 17:34:34 +02:00
Alexander Karzhenkov
3ebd3b6bce Rename module with <threadapi> definition 2017-10-07 19:10:31 +05:00
Vicente J. Botet Escriba
f247ef75cd Merge branch 'develop' of github.com:boostorg/thread into develop 2017-10-06 01:46:00 +02: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
517f1efc56 replace check by unlock_if_locked as some OsX define a check macro. 2017-10-04 23:33:48 +02:00
Vicente J. Botet Escriba
db160fa8c5 Merge pull request #169 from austin-beer/fix_upwards_conversions_doc
Fixing documentation error
2017-10-03 18:41:42 +02:00
Austin Beer
983fb2e686 Fixing incorrect references to BOOST_THREAD_PROVIDES_SHARED_MUTEX_UPWARDS_CONVERSION in the documentation. The actual code uses BOOST_THREAD_PROVIDES_SHARED_MUTEX_UPWARDS_CONVERSIONS (note the trailing 'S'). 2017-10-03 09:34:17 -06:00
Vicente J. Botet Escriba
f794d5a9d1 Merge pull request #168 from austin-beer/feature/timespec_clocks_pr13
Renaming timespec to platform
2017-10-03 07:29:06 +02:00
Vicente J. Botet Escriba
e3f586836a check > 480 instead of > 500. 2017-10-02 19:06:52 +02:00
Austin Beer
82e2c82e95 Renaming timespec to platform 2017-10-02 09:23:54 -06:00
Vicente J. Botet Escriba
3479524845 trace elapsed time. 2017-10-02 13:18:33 +02:00
Vicente J. Botet Escriba
178e0661ab fix bad clock:: use, shoudl be chrono::steady_clock. 2017-10-02 08:59:41 +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
e7d6055ed3 Merge pull request #167 from austin-beer/feature/timespec_clocks_pr12
Fixes and Cleanup
2017-10-01 10:15:31 +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
Vicente J. Botet Escriba
9969ec8504 remove the #warning 2017-09-30 12:18:30 +02:00
Vicente J. Botet Escriba
995033cf20 Make sync_timed_queue more general adding a TimePoint parameter and fix the inteface of all the time related functions _for/_until to take generic chrono::timepoints and chrono::durations. 2017-09-30 12:15:06 +02:00
Vicente J. Botet Escriba
d5da7a4dda disable ex_lambda_future test for msvc-11.0 and add a warning to signal this doesn't work. 2017-09-30 10:03:17 +02:00
Austin Beer
659d309206 Re-enabled tests on Windows that had been temporarily disabled. 2017-09-29 15:53:21 -06:00