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
Vicente J. Botet Escriba
ace2b8f89e
rollback and use RAII.
2017-05-06 23:04:52 +02:00
Vicente J. Botet Escriba
24188f295c
fix missing remove aiter while return.
2017-05-06 22:53:41 +02:00
Vicente J. Botet Escriba
653671bc0e
fix compilation error.
2017-05-06 14:43:49 +02:00
Vicente J. Botet Escriba
c251497758
Avoid throwing on destructor: condition_variable.
2017-05-06 12:09:23 +02:00
Vicente J. Botet Escriba
69435fa44e
try to fix lock on destructor issues.
2017-05-06 03:58:13 +02:00
Vicente J. Botet Escriba
6bc6fcab9a
fix compilation error :(
2017-05-04 19:16:04 +02:00
Vicente J. Botet Escriba
50bac8c0eb
fix compilation error :(
2017-05-04 07:58:58 +02:00
Vicente J. Botet Escriba
879db6841d
try to fix compilation error on windows condition_variable.hpp.
2017-05-01 02:58:45 +02:00
Vicente J. Botet Escriba
dcafe1e17d
Add noexcept(false) in destructor that could throw in C++11.
2017-04-29 16:15:57 +02:00
Vicente J. Botet Escriba
c83d30f526
manage with #12874 .
2017-04-29 16:13:52 +02:00
Vicente J. Botet Escriba
51b367df53
manage with 12958.
2017-04-29 16:12:35 +02:00
Vicente J. Botet Escriba
65f98979ff
replace and by && to make the code portable
2017-03-01 19:39:56 +01:00
Vicente J. Botet Escriba
30dff7f84a
try to fix MONOTONIC timming issue.
2017-02-28 23:28:44 +01:00
Christian Neumüller
2ed0c2ad5f
Loop executor: Don't poll but wait in loop().
2017-02-28 18:50:08 +01:00
Vicente J. Botet Escriba
c7348b29cf
Compile conditionally to try to fix the timespec monotonic issue. This is not a final solution as we need to add two defines while building Boost.Thread, but atleast will allow to check if the solution work.
2017-02-25 22:41:00 +01:00
Vicente J. Botet Escriba
9bbf9bed80
rollback MONOTONIC_CLOCK change as it seems it introduce regressions.
2017-02-24 15:20:04 +01:00
Vicente J. Botet Escriba
544eda51bd
make use of MONOTONIC_CLOCK when available.
2017-02-18 10:34:36 +01:00
Vicente J. Botet Escriba
e16705a72a
Added more functors to scoped threads.
2017-02-18 10:22:34 +01:00
Vicente J. Botet Escriba
61a26492c3
use SFINAE for wait_for_all is_future_type.
2017-02-18 10:21:45 +01:00
Vicente J. Botet Escriba
4d4ddcdc36
Merge branch 'develop' of github.com:boostorg/thread into develop
2017-01-25 08:13:22 +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
Andrey Semashev
b96d05461f
Compilation fixes for MinGW. Support for MSVC on ARM.
...
1. Apparently, some versions of MinGW declare interlocked intrinsics
without volatile qualifiers. To avoid compilation failures cast away
volatile from pointers. This should also work with qualified pointers as
well.
2. Changed interlocked read/write helpers for MSVC. VS2012 and later have
the option to change volatile behavior to the standard C++. In that mode,
volatile no longer enforces memory ordering. To ensure the correct
behavior of the helpers, use compiler barriers to prohibit code
reordering. Also, limit the version to x86 only.
3. Added a separate version of interlocked read/write helpers for MSVC on
ARM. To avoid dependency on the compiler switch, use intrinsics to load
and store values and also emit the hardware memory fence.
4. Added two versions of interlocked read/write helpers for gcc and
compatible compilers. One version is based on __atomic intrinsics, the
other one (for older versions) uses inline assembler. These versions
should be more optimal than the generic fallback.
2017-01-07 20:08:30 +03:00
Jürgen Hunold
050a45aaa4
Remove trailing ";"
...
clang warning: extra ';' after member function definition [-Wextra-semi]
2017-01-06 10:01:37 +01:00
Vicente J. Botet Escriba
23cff22e5a
fix category in thread_excaption.
2017-01-02 01:21:02 +01:00
equal-l2
3ac5fd0916
fix typo
...
Just in case
2016-12-20 06:27:06 +09:00
Vicente J. Botet Escriba
a0bda34054
fix typo in merge.
2016-11-04 00:52:59 +01:00
Antony Polukhin
184d7504b7
Fix minor possibility of loosing the notify
2016-11-02 23:13:26 +03:00
Wei-Ming Yang
7e7d3bf1a7
fix compile failed with boost::user_scheduler
...
The `work` is not in namespace `boost::thread_detail` anymore.
2016-10-24 08:24:25 +08:00
Vicente J. Botet Escriba
f8b76aa907
Merge pull request #103 from rick68/patch-8
...
fix relational operators of boost::synchronized_value<>
2016-10-22 23:47:09 +02:00
Wei-Ming Yang
e71f52f9ed
fix relational operators of boost::synchronized_value<>
...
fix incorrect relational operators.
2016-10-22 17:53:10 +08:00
Wei-Ming Yang
cd41de6e3f
fix boost::synchronized_value<>::load()
...
The data member `boost::synchronized_value<>::value_` is not mutable, so boost::synchronized_value<>::load() could not be const.
2016-10-22 17:18:28 +08:00
Vicente J. Botet Escriba
866ff746ae
fix queue_back/front_view: documentation mismatch
2016-09-06 20:10:50 +02:00
Vicente J. Botet Escriba
5450e98c6b
Use BOOST_THREAD_ASYNC_FUTURE_WAITS instead of BOOST_THREAD_FUTURE_BLOCKING and wait instead of join. See #11851 and #12220 .
2016-09-03 17:18:53 +02:00
Vicente J. Botet Escriba
c52a34c2cf
format.
2016-09-01 07:41:20 +02:00
Vicente J. Botet Escriba
fc748dbddf
12293- make the unwrap constructor explicit.
2016-08-20 09:27:47 +02:00
Vicente J. Botet Escriba
e34d343c12
avoid to unlock the mutext befote release_waiters.
2016-08-15 22:50:23 +02:00
Vicente J. Botet Escriba
63484911c6
fix compile error when INTERRUPTIONS are not provided.
2016-08-09 02:48:26 +02:00
Vicente J. Botet Escriba
bb2c38aa61
Fix result_of signature and unlonk before notyfying.
2016-08-09 02:47:22 +02:00
Vicente J. Botet Escriba
7ffdc5e10a
Merge pull request #90 from rick68/patch-3
...
fix a bug in try_lock_wrapper<>::operator=()
2016-08-07 13:05:40 +02:00
Vicente J. Botet Escriba
25864ce33a
Merge pull request #93 from vslavik/fix-shadowing-warnings
...
Fix variable shadowing warnings (Clang)
2016-08-07 13:04:09 +02:00
Vicente J. Botet Escriba
b511472614
Merge pull request #95 from rick68/patch-5
...
fix a mistake in boost::completion_latch
2016-08-07 13:00:31 +02:00
Vicente J. Botet Escriba
13c15cd002
Merge pull request #97 from rick68/patch-6
...
fix a mistake in sync_timed_queue<>::pull_until()
2016-08-07 12:58:22 +02:00
Wei-Ming Yang
9c80dd207e
fix a mistake in sync_timed_queue<>::pull_until()
...
The type of `super::not_empty_` in `sync_timed_queue<>` is `boost::condition_variable`, and the return type of `wait_until()` is `boost::cv_status`.
2016-07-31 12:12:55 +08:00
Wei-Ming Yang
96390e1b46
fix a mistake in boost::completion_latch
...
The constructor `completion_latch(std::size_t count, void(*funct)())` does not use any template arguments.
2016-07-26 07:39:10 +08:00
Václav Slavík
e2ff1e4c67
Fix variable shadowing warnings (Clang)
...
Fix multiple instance of declarations shadowing either local variables
or fields.
2016-07-24 22:03:07 +02:00
Andrey Semashev
96b96b4e42
Add shared_lock_guard to the included lock types
2016-07-13 14:42:06 +04:00
Wei-Ming Yang
a774cac3f2
fix a bug in try_lock_wrapper<>::operator=()
...
It invokes the copy constructor that already be deleted.
2016-07-13 15:34:01 +08:00
Wei-Ming Yang
850f3eced3
fix a bug in upgrade_to_unique_lock<>::operator=()
...
It invokes the copy constructor that already be deleted.
2016-07-13 12:42:20 +08:00
Wei-Ming Yang
e5c086cef4
fix typos in boost::upgrade_lock
...
Corrects the class name in exception messages.
2016-07-12 01:17:41 +08:00
Vicente J. Botet Escriba
0ef1b1b760
Merge pull request #83 from v4hn/spell-out-thread-ns
...
specify boost:: prefix for future threads
2016-05-26 07:39:30 +02:00
Michael Görner
ab9f931bce
specify boost:: prefix for future threads
...
This makes the usage of the boost::thread class consistent within the header
2016-05-26 01:18:16 +02:00
Marcel Raad
ccca616330
Fix Windows version problems
...
- the target Windows version was hardcoded to Windows 95
in thread.cpp if not already defined
- the include for BOOST_USE_WINAPI_VERSION was missing
2016-05-25 15:54:28 +02:00
Vicente J. Botet Escriba
ef401d81db
Merge branch 'develop' of github.com:boostorg/thread into develop
2016-04-20 23:59:40 +02:00
Vicente J. Botet Escriba
55a1325f30
call interrupt only if joinable.
2016-04-20 23:50:16 +02:00
Vicente J. Botet Escriba
640e1acb98
Merge pull request #78 from brycelelbach/patch-1
...
Fix typo in implementation detail namespace
2016-04-20 23:20:19 +02:00
Vicente J. Botet Escriba
411798367b
call on_desctruction on scoped_thread move assignment.
2016-04-17 23:41:21 +02:00
Vicente J. Botet Escriba
9db70b803d
add missing template parameter in wait_until.
2016-03-25 00:02:04 +01:00
Vicente J. Botet Escriba
317a735836
try to manage with #12036 .
2016-03-05 11:07:54 +01:00
Vicente J. Botet Escriba
4fb88b29fa
take in account error in condition_variable_any::wait_until.
2016-02-28 23:49:29 +01:00
Bryce Adelstein-Lelbach
3f5c0bfb6c
Fix typo in implementation detail namespace
...
Either I'm missing something or hidden has been misspelled as 'hiden' here.
2016-02-19 10:00:25 -08:00
Vicente J. Botet Escriba
1d04db8887
Merge branch 'develop' into feature/add_launch_sync_policy
2015-12-19 23:07:04 +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
4ad37504ee
#11817 . missing include file.
2015-11-24 06:50:08 +01:00
Vicente J. Botet Escriba
a636c8d605
Merge branch 'develop' into feature/add_launch_sync_policy
2015-11-15 00:07:51 +01:00
Stefan Bühler
8cba434c59
neither continuation nor parent need mutex protection
2015-11-13 12:18:38 +01:00
Stefan Bühler
feab8add3f
refactor deferred execute calls
2015-11-13 12:18:38 +01:00
Stefan Bühler
f36857ffef
explicitly clear continuation parent state
2015-11-13 12:18:38 +01:00
Stefan Bühler
4ba8415b08
drop sentinel in continuation/unwrap states
...
- instead keep the inner state alive in places where we move ourself after we
locked the inner state
2015-11-13 12:18:34 +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
7b67789f98
Avoid ambiguity with C++17 std::invoke.
2015-11-09 23:58:15 +01:00
Vicente J. Botet Escriba
3f7f34b634
minor cleanup on condition_variable.
2015-11-08 17:30:29 +01:00
Vicente J. Botet Escriba
eb6d819218
remove unused typedef.
2015-11-08 10:58:36 +01:00
Vicente J. Botet Escriba
55536c3e23
first commit for launch::sync policy.
2015-10-29 17:22:32 +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
fdaba4efe7
try to fix Windows issue with system::time_point arithmetic.
2015-10-22 23:04:23 +02:00
Vicente J. Botet Escriba
98a5e343f8
fix compiler error on time_point_cast.
2015-10-22 11:15:20 +02:00
Vicente J. Botet Escriba
d9492530bd
fix timi_point conversion.
2015-10-21 20:19:56 +02:00
Vicente J. Botet Escriba
dcc3227668
don't use steady clock if not supported.
2015-10-20 10:03:51 +02:00
Vicente J. Botet Escriba
8153e2a652
try to fix MSVC issue with template class.
2015-10-19 20:01:42 +02:00
Vicente J. Botet Escriba
7876163c68
make sync optional.
2015-10-19 00:50:29 +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
bf1fc5158e
Added launch::inherit and specialize the behavior for the(launch::inherit, Cont).
2015-10-18 04:17:27 +02:00
Vicente J. Botet Escriba
1e4e9ab84c
#11734 . future::then(Cont) should be able to execute the contination on undetermined thread.
2015-10-18 00:36:25 +02:00
Vicente J. Botet Escriba
0ab63b9248
Remove counting when async future blocking.
2015-10-17 11:38:06 +02:00
Vicente J. Botet Escriba
73053e4abe
merge from develop.
2015-10-17 10:51:50 +02:00
Vicente J. Botet Escriba
b4744a2aa8
then can be now sync. The destructor of a shared state that joins check for thread_ifbefore join. Adde continuation_shared_state to share common behavior.
2015-10-17 00:44:45 +02:00
Vicente J. Botet Escriba
cc309eef8d
refactor ::then(f) in function of ::then(launch_policy, f).
2015-10-15 23:31:38 +02:00
Vicente J. Botet Escriba
45cc1704ef
fix some missing decay. Cleanup adding init.
2015-10-15 19:19:07 +02:00
Jürgen Hunold
6ed577f4eb
Fix executor forward
...
correct namespace and type
2015-10-12 08:01:19 +02:00
Vicente J. Botet Escriba
bf8459cf23
Merge from develop.
2015-10-11 23:34:45 +02:00
Vicente J. Botet Escriba
ad3cf1189e
More fixes for some move semantic issues C++03.
2015-10-11 21:30:54 +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
dacd6deb0a
Add static_shared_from_this and make use of it.
2015-10-09 08:53:47 +02:00
Vicente J. Botet Escriba
f0228ff559
fix shared_state_nullary_task_lifetime_issue_bad_use_of_direct_pointer on C++98 compilers.
2015-10-04 02:10:33 +02:00
Vicente J. Botet Escriba
4acaddd166
rollback fix shared_state_nullary_task_lifetime_issue_bad_use_of_direct_pointer on C++98 compilersas there is a compile error to fix.
2015-10-03 20:26:47 +02:00
Vicente J. Botet Escriba
3a65295d7d
replace >> by > >.
2015-09-30 23:58:03 +02:00
Vicente J. Botet Escriba
773f8bfcb4
replace >> by > >.
2015-09-30 23:57:00 +02:00
Vicente J. Botet Escriba
450f34daed
merge from develop.
2015-09-30 00:01:33 +02:00
Vicente J. Botet Escriba
ea9eb62802
fix shared_state_nullary_task_lifetime_issue_bad_use_of_direct_pointer.
2015-09-29 21:57:52 +02:00
Vicente J. Botet Escriba
971c028c9a
thread::try_join_until: Avoid busy wait if system clock changes. #11688 .
2015-09-28 21:46:16 +02:00
Vicente J. Botet Escriba
8f5de1d7c3
make condition_variable_any steady when BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC.
2015-09-25 07:35:25 +02:00
Vicente J. Botet Escriba
a86e2ebcc4
Dont use nanosleep on sleep_for if defined BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC.
2015-09-24 01:25:22 +02:00
Vicente J. Botet Escriba
18cbf4b055
rollback reverse the use of dattime and chrono when chrono is acceptable.
2015-09-24 01:24:08 +02:00
Vicente J. Botet Escriba
6029447774
Merge branch 'develop' of github.com:boostorg/thread into develop
2015-09-24 00:08:22 +02:00
Vicente J. Botet Escriba
205a1d7e2b
apply patch ref #7720 .
2015-09-24 00:07:11 +02:00
Ben Wiederhake
baca517058
Avoid deprecated auto_ptr
2015-09-19 18:14:41 +02:00
Marcel Raad
4224a9f4df
Fix for future with RTTI off
...
895b4a0ac5
introduced dynamic_casts. This breaks boost::future with RTTI turned off, which worked before. static_casts should be enough here.
2015-09-11 11:06:32 +02:00
Vicente J. Botet Escriba
c1ee2bfbd8
fix issue with latch:wait when count is already 0.
2015-09-08 18:25:20 +02:00
Vicente J. Botet Escriba
b30cde32d4
reverse the use of dattime and chrono when chrono is acceptable.
2015-09-08 18:22:44 +02:00
Vicente J. Botet Escriba
ac3f7eb037
comment sleep_for overload on nanoseconds on windows.
2015-09-05 16:17:36 +02:00
Vicente J. Botet Escriba
9f883f6ad7
Add a possible implementation of a steady condition_variable.
2015-09-03 23:44:03 +02:00
Vicente J. Botet Escriba
89b119f65f
Merge branch 'develop' of github.com:boostorg/thread into develop
2015-08-21 18:38:14 +02:00
Vicente J. Botet Escriba
1ae07f3f3a
Add shared_timed_mutex typedef.
2015-08-21 18:37:42 +02:00
Vicente J. Botet Escriba
ac603f6bd1
fix devector allocator_traits_type specific usage.
2015-08-21 18:35:36 +02:00
jzmaddock
ff375e2780
Move Oracle workaround to correct location
2015-08-20 10:51:23 +01:00
jzmaddock
b8dbe960b7
Fix to get Thread lib building with Oracle C++
...
See https://svn.boost.org/trac/boost/ticket/11550
2015-08-18 18:20:25 +01:00
Vicente J. Botet Escriba
4f9a08c418
fix for(;;){} .
2015-07-01 13:21:39 +02:00
Vicente J. Botet Escriba
44272d3b7c
fix for(;;); .
2015-06-29 08:43:01 +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
2a375808c4
Merge branch 'develop' of github.com:boostorg/thread into develop
2015-06-21 17:38:13 +02:00
Vicente J. Botet Escriba
55c21919fc
try to remove some warnings.
2015-06-21 17:37:30 +02:00
Marcel Raad
b980b88474
Fix typo
...
There was a typo in the code with both BOOST_USE_WINDOWS_H and BOOST_NO_ANSI_APIS defined.
2015-06-05 17:48:53 +02:00
Vicente J. Botet Escriba
7cb5211e25
fix typo on poly lockables.
2015-05-29 20:02:08 +02:00
Vicente J. Botet Escriba
958b773d05
Merge from develop.
2015-05-18 22:35:17 +02:00
Vicente J. Botet Escriba
e39703ff18
Merge branch 'develop' of github.com:boostorg/thread into develop
2015-05-15 15:07:08 +02:00
Vicente J. Botet Escriba
aafd5ca726
applie patch for #11266 .
2015-05-15 15:05:09 +02:00
Vicente J. Botet Escriba
9b69912801
Merge pull request #54 from tempoz/patch-5
...
Remove unused parameter
2015-05-14 18:18:31 +02:00
Vicente J. Botet Escriba
87615d54dd
cleanup unused function set_exceptional_if_invalid.
2015-05-06 09:48:54 +02:00
Vicente J. Botet Escriba
5488482a44
simplify launch_continuation interface.
2015-05-04 23:06:39 +02:00
Vicente J. Botet Escriba
1480d6fc99
simplify launch_continuation interface.
2015-05-04 18:24:09 +02:00
Vicente J. Botet Escriba
131c92a7d8
propagate unwrap fixes.
2015-05-04 00:19:12 +02:00
Vicente J. Botet Escriba
71d9a0a120
fix issue with unwrap shared state. Take care of exceptions on the unwrapped future.
2015-05-03 22:52:52 +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
1b2736012c
Merge branch 'fix/basic_thread_pool_bad_use_of_scoped_thread' into develop
2015-05-03 14:36:57 +02:00
Vicente J. Botet Escriba
5205fa71bf
Fixed some missing lock.unlock().
2015-05-03 14:30:52 +02:00
Vicente J. Botet Escriba
ba2988a8f7
Fixed issue with basic_thread_pool scoped threads.
2015-05-03 10:42:42 +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
bce7eabba2
fix make_exceptional issue.
2015-04-30 01:11:39 +02:00
Vicente J. Botet Escriba
1bd78bbeea
cleanup commented code.
2015-04-25 11:16:03 +02:00
Vicente J. Botet Escriba
e850218c49
ref #11174 - boost::condition_variable::timed_wait with predicate unexpectedly wakes up while should wait infinite.
2015-04-25 00:20:53 +02:00
Vicente J. Botet Escriba
385eefd3b3
ref #11174 - boost::condition_variable::timed_wait with predicate unexpectedly wakes up while should wait infinite.
2015-04-25 00:20:05 +02:00
Zoey Greer
2ddf7aad0b
Remove unused parameter
...
lk is unused in get_state, naming it causes build warnings
2015-04-22 19:37:36 -04:00
Vicente J. Botet Escriba
c9433c2a5b
rollback ref #11174 - boost::condition_variable::timed_wait with predicate unexpectedly wakes up while should wait infinite.
2015-04-22 22:49:26 +02:00
Vicente J. Botet Escriba
8853a4cbdf
ref #11174 - boost::condition_variable::timed_wait with predicate unexpectedly wakes up while should wait infinite.
2015-04-22 07:23:38 +02:00
Vicente J. Botet Escriba
6f53279b50
ref #11174 - boost::condition_variable::timed_wait with predicate unexpectedly wakes up while should wait infinite.
2015-04-18 19:26:07 +02:00
Vicente J. Botet Escriba
0bed674233
ref #11192- boost::future<>::then() with an executor doesn't compile when the callback returns a future
2015-04-18 07:04:50 +02:00
Vicente J. Botet Escriba
45c9a1d7fd
ref #11192- boost::future<>::then() with an executor doesn't compile when the callback returns a future
2015-04-17 18:30:49 +02:00
Marcel Raad
b5c6f760c5
Respect BOOST_USE_WINDOWS_H again
...
With the GetTickCount64 and WinRT fixes, the Windows API functions were always re-declared regardless of BOOST_USE_WINDOWS_H. This breaks clang-cl, which complains about conflicting definitions.
2015-03-26 13:43:44 +01: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
5169a5414b
mutex::unlock must not throw.
2015-03-14 16:26:35 +01:00
Vicente J. Botet Escriba
82b9a4e28c
Use coherently size_type.
2015-03-12 04:09:34 +01:00
Vicente J. Botet Escriba
e989d2f626
Add comments.
2015-03-12 04:08:42 +01:00
Vicente J. Botet Escriba
dcebe26a11
try to get rid of possible deadlock.
2015-03-10 00:47:38 +01:00
Vicente J. Botet Escriba
c7bb6fa318
Allow timed and recursive mutex on ANDROID. Related to #11035 .
2015-03-01 01:37:45 +01:00
Vicente J. Botet Escriba
e0ce8af1d9
cleanup work.hpp
2015-02-28 12:39:03 +01:00
Vicente J. Botet Escriba
c54dbe30a2
move the work parameter.
2015-02-28 12:37:27 +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
41172e4814
fix missing include in caller_context.hpp and let the possibility to dump function at compile time.
2015-02-28 12:33:46 +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
ec770eeb6a
fix forwarding reference_wrapper in make_ready_future.
2015-02-20 16:34:56 +01:00
Vicente J. Botet Escriba
b9ab307912
rollback nullary_function<void()const> specialization.
2015-02-20 16:33:53 +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
b07f18facf
remove include/boost/thread/detail/work.hpp.
2015-02-20 10:18:35 +01:00