Austin Beer
f1dec7935f
Rearranged a couple of functions to simplify the #if/#else logic.
2017-09-19 13:22:13 -06:00
Vicente J. Botet Escriba
732f8c7458
Merge pull request #152 from shinobu-x/sk_detail_move_fix_001
...
Do not include same headers twice
2017-09-19 20:39:07 +02:00
Shinobu Kinjo
dd66147e07
Do not include same headers twice
2017-09-20 03:06:10 +09:00
Austin Beer
aebbcda3fe
Updates to fix interruption-point inconsistencies.
...
* Fixed the interruption-point versions of sleep_for/sleep_until() to always use condition variables.
* Fixed the no-interruption-point versions of sleep_for/sleep_until() to use pthread_delay_np or nanosleep whenever possible.
* Updated hidden::sleep_for() to always use a condition variable.
* Updated no_interruption_point::hidden::sleep_for() to use pthread_delay_np or nanosleep whenever possible.
2017-09-19 09:04:57 -06:00
Vicente J. Botet Escriba
5b4d230d4a
Merge branch 'develop' into feature/timespec_clocks
2017-09-19 13:01:20 +02:00
Vicente J. Botet Escriba
48a2a960da
remove some warnings.
2017-09-19 03:20:46 +02:00
Vicente J. Botet Escriba
9813c81ef3
Added missing include.
2017-09-18 02:44:37 +02:00
Vicente J. Botet Escriba
65989edb97
Added promise deferred functions.
2017-09-18 02:22:49 +02:00
Vicente J. Botet Escriba
576231942d
Merge branch 'develop' into feature/timespec_clocks
2017-09-17 22:40:59 +02:00
Vicente J. Botet Escriba
56016e8348
reinplement sleep(system_time) as proposed by Austin Beer.
2017-09-17 19:08:51 +02:00
Vicente J. Botet Escriba
b6b6a6944a
remove redundant chrono::
2017-09-17 18:45:05 +02:00
Edward Diener
dfb64a5af5
Removed executable attribute.
2017-09-17 08:51:10 -04:00
Andrey Semashev
b64aad9869
Changed _pRawDllMain and related types to use HINSTANCE instead of HANDLE.
...
In MSVC-9 MFC sources, _pRawDllMain and ExtRawDllMain accept HINSTANCE as
the first argument, not HANDLE. In strict mode these are different types,
which creates the potential for ODR errors. This commit resolves that
inconsistency.
Resolves https://svn.boost.org/trac10/ticket/12323 .
2017-09-16 20:47:10 +03: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
14deba107f
minor chnages.
2017-09-07 22:41:31 +02:00
Vicente J. Botet Escriba
99e2867a21
add missing t-d100 as reported by Autin.
2017-09-06 23:39:29 +02:00
Vicente J. Botet Escriba
6805c7fcb6
fix timed mutex chrono time related functions.
2017-09-06 22:57:34 +02:00
Vicente J. Botet Escriba
24b1636615
try a fix for sleep_for/sleep_until on linux.
2017-09-06 12:57:09 +02:00
Vicente J. Botet Escriba
c67f4b08a0
try to fix QOI issues reported by Austin Bear for condition_variable/condition_variable_any with chrono interface.
2017-09-06 00:06:33 +02:00
Vicente J. Botet Escriba
5c51abc92f
fix windows issues reported by Austin Bear.
2017-09-05 23:39:50 +02:00
Andrey Semashev
a1460b6b0d
Fixed incorrect call to GetCurrentThreadId.
2017-09-05 21:43:42 +03:00
Andrey Semashev
02f3290765
Added a missing include.
2017-09-05 21:42:43 +03:00
Vicente J. Botet Escriba
078bd570c8
Iterate while waiting until on condition variables.
2017-09-05 12:49:41 +02:00
Vicente J. Botet Escriba
b1991924b7
fix compile issue on windows.
2017-09-05 12:48:13 +02:00
Vicente J. Botet Escriba
fa1965a87c
comment unuseful/redundant code
2017-09-05 12:47:32 +02:00
Vicente J. Botet Escriba
d00933d5f4
Windows has an internal steady clock.
2017-09-05 12:46:34 +02:00
Vicente J. Botet Escriba
13d293829c
Update after test from brainwave64.
2017-09-04 01:48:36 +02:00
Vicente J. Botet Escriba
a6d5b5e576
Use internal clock whenever possible.
2017-09-03 16:17:45 +02:00
Vicente J. Botet Escriba
1063638763
Replace timespec by specific clock/timepoint/duration like classes that represent the monotonic, the real or the one used internaly at the platform level. Make use of these clocks/timepoints/durations almost all around. Need to replace yet all the occurrences of get_system_time().
2017-09-02 14:42:25 +02:00
SSE4
5f0eeeff66
- additional WinAPI definitions
2017-08-31 16:12:16 +07:00
SSE4
e63257ff7f
- switch to boost winapi, to avoid duplicated definitions when compiling using Clang on Windows
2017-08-31 14:52:13 +07:00
Vicente J. Botet Escriba
39c23ddf5a
Interrup the threads before joining on schedulers.
2017-08-28 09:16:20 +02:00
Vicente J. Botet Escriba
510e66aef7
rename make_ready to notify_deferred.
2017-08-26 10:39:31 +02:00
Vicente J. Botet Escriba
19c590a881
manage with #12949 .
2017-08-26 10:38:37 +02:00
Vicente J. Botet Escriba
395e3d786b
#130 - Bug in boost::condition_variable on Windows.
2017-08-24 09:04:26 +02:00
Vicente J. Botet Escriba
fdc0cbcd8c
#130 - Bug in boost::condition_variable on Windows.
2017-08-24 08:45:36 +02:00
Vicente J. Botet Escriba
f27a2921da
manage with #13019 - ABI compatibility for BOOST_THREAD_PROVIDES_INTERRUPTIONS incomplete.
2017-08-23 00:33:57 +02:00
Vicente J. Botet Escriba
bb32aa3164
manage with 13163-boost::detail::heap_new does not have a variadic variant.
2017-08-22 23:48:23 +02:00
Vicente J. Botet Escriba
70b887a7bd
Merge branch 'develop' of github.com:boostorg/thread into develop
2017-08-16 20:31:11 +02:00
Vicente J. Botet Escriba
28bf345c96
make more evident that timespec is realtime and not monotonic.
2017-08-16 20:30:59 +02:00
Shinobu Kinjo
c4d5488f7a
Do not include same header twice
...
include/boost/thread/pthread/shared_mutex.hpp
2017-08-15 07:29:10 +09:00
Vicente J. Botet Escriba
24a22b66ef
Workaround deprecated ::getpagesize().
2017-08-13 07:19:42 +02:00
Andrey Semashev
23e7135f2c
Use BOOST_MAY_ALIAS from Boost.Config.
2017-07-29 17:09:18 +03:00
Vicente J. Botet Escriba
d4cff01c72
#12519 .
2017-06-11 11:30:59 +02:00
Václav Slavík
ea0bc01400
Don't compare shared_ptr<> to 0
...
Update the code to consistently use a check for .get() == 0, as was
already done in most, but not all, places, to avoid issues with
ambiguous overloaded operator== and operator!=.
2017-06-07 17:24:40 +02:00
Andrey Semashev
bf4b38b0af
Fixed entry_manager constructor not accepting entry_ptr rvalue. This resolves compilation failures with MinGW.
2017-05-22 13:11:11 +03:00
Vincent Hsu
603689372c
Fix sync_bounded_queue<>::size()
2017-05-10 13:12:01 +08:00
Vicente J. Botet Escriba
5b05d6a8c8
fix compile error.
2017-05-07 16:01:10 +02:00
Vicente J. Botet Escriba
12c0fe14cd
fix compile error.
2017-05-07 09:05:12 +02:00