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
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
401f69f108
Added coalesced timer support to Windows where that API is available. Tolerable delay is set to the maximum of 5% of interval or 32 ms.
2015-02-04 13:58:11 +00:00
Vicente J. Botet Escriba
fdf20f1adc
merge Allow to call shared_future::then multiple times. Related to #10972 .
2015-02-02 19:40:04 +01:00
Vicente J. Botet Escriba
441c89d304
Allow to call shared_future::then multiple times. Related to #10972 .
2015-02-02 17:41:57 +01:00
Vicente J. Botet Escriba
63098e84a2
Merge branch 'develop' into fix/blocking_future
2015-02-01 19:39:43 +01:00
Vicente J. Botet Escriba
45510facc7
unwrapped future must forward the continuation to the wrapped future. Related to #10964 .
2015-02-01 14:56:52 +01:00
Vicente J. Botet Escriba
3431736c88
Merge branch 'develop' into fix/blocking_future
2015-01-27 22:22:37 +01:00
Vicente J. Botet Escriba
2891aff469
Add missing file .
2015-01-24 18:43:56 +01:00
Vicente J. Botet Escriba
e74fd82060
Merge from develop.
2015-01-24 18:02:31 +01:00
Vicente J. Botet Escriba
c16ec42941
Take care of #10964 .
2015-01-24 16:48:44 +01:00
Vicente J. Botet Escriba
b77eac3e37
Take care of #10963 .
2015-01-24 11:57:54 +01:00
Vicente J. Botet Escriba
d9c7f95617
fix future async deferred.
2015-01-23 07:10:22 +01:00
Vicente J. Botet Escriba
06b3f6a9d7
disable async deferred on C++98 as not implemented.
2015-01-23 06:02:11 +01:00
Vicente J. Botet Escriba
895b4a0ac5
Try to fix a lot of issues, even if alldoesn't works yet.
2015-01-22 23:10:40 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
eb14d3d958
Added a test for defect #9856 where wait_for() is not always returning timedout on Windows.
2015-01-22 17:20:46 +00:00
Vicente J. Botet Escriba
9cb72849ee
Go towards blocking on the last future associated to an async shared state. shared_future don't work yet.
2015-01-18 12:19:17 +01:00
Vicente J. Botet Escriba
2c028aa014
fix more erros after Boost.Test commit.
2015-01-12 00:36:55 +01:00
Vicente J. Botet Escriba
ab026e239c
Fix erros after Boost.Test adding dependency to Boost.Timer.
2015-01-11 18:21:22 +01:00
Vicente J. Botet Escriba
3a48148462
Fix Boost.Test issues after meger :(.
2015-01-11 17:30:54 +01:00
Raffi Enficiaud
ef48908f35
Merge branch 'master' of https://github.com/boostorg/thread
...
# By Vicente J. Botet Escriba (274) and others
# Via Vicente J. Botet Escriba (42) and others
* 'master' of https://github.com/boostorg/thread : (318 commits)
Added missing include.
cleanup future.hpp.
Updated CI dashboard with latest tests.
Looks like timeconv.inl may be completely unnecessary, so remove.
Could find no code anywhere in Boost which uses to_time(), to_timespec_duration(), to_duration() nor to_microduration(), so removed the code.
Fixed MSVC static analyser warning about writing off the end of an array.
Stop LNK4221 link warning with link=static.
Suppressed some unimportant warnings so the CI doesn't flag them.
Added static analysers to CI dashboard.
Added winphone8 build test.
Fix failure to build on Android.
redo
Added overall build and test status
Added test matrix to Readme.md so a summary appears on github
fix some typos.
ensure that the exceptions throw by a task submitted by a serial executor are transfered to it, and so the serial_executor doesn't block forever.
No comment after preprocessor continuation for msvc-12.0
Added ! defined __clang__ when tested defined __GNUC__.
Added BOOST_THREAD_PROVIDES_INVOKE constraing for invoker.
thread: physical_concurrency - return 0 instead of hardware_concurrency on failure
...
Conflicts:
test/test_2741.cpp
2015-01-11 16:22:32 +01:00
Raffi Enficiaud
28ead512c1
some reworked test init + boost.test link fix
2015-01-11 16:21:32 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
b87d26a900
Suppressed some unimportant warnings so the CI doesn't flag them.
2014-12-11 19:15:38 +00:00
Vicente J. Botet Escriba
72dfa02269
Added BOOST_THREAD_PROVIDES_INVOKE constraing for invoker.
2014-12-03 22:37:42 +01:00
Vicente J. Botet Escriba
06a9f9ab6d
Added Clock parameter to scheduler and priority_timed_queue. Fix warnings in tests.
2014-11-17 07:34:43 +01:00
Vicente J. Botet Escriba
1b99fe5587
Replace range-based for loops to make the code more portable.
2014-11-14 08:45:16 +01:00
Vicente J. Botet Escriba
9b0705cb6f
Added deque_views. Make use of sync_queue and refactor to use sync_queue removing _front and _back.
2014-11-09 15:39:10 +01:00
Vicente J. Botet Escriba
3abdb869df
Reduce the interface of sync_quue to the queue operations, removing the deprecated ones and removing _front and _back.
2014-11-09 14:12:28 +01:00
Vicente J. Botet Escriba
f90e76a59c
Added sync_deque.
2014-11-09 13:45:05 +01:00
Vicente J. Botet Escriba
e6501b5485
cleanup scheduled executors.
2014-11-09 11:37:18 +01:00
Vicente J. Botet Escriba
a8ad389bdd
Merge branch 'develop' into feature/task_region
2014-11-06 07:42:36 +01:00
Vicente J. Botet Escriba
69c1d40750
Merge branch 'develop' into feature/promise_set_value_emplace
2014-11-05 23:43:02 +01:00
Vicente J. Botet Escriba
37afdd2e9a
Moved test_scheduler_p to a explicit test_suite.
2014-11-05 01:03:44 +01:00
Vicente J. Botet Escriba
c87b24923a
Added scheduler at/after/on executor factory helper functions.
2014-11-05 00:41:29 +01:00
Vicente J. Botet Escriba
4f01891da7
Added not_ready and timeout queue_op_status. Make sync_timed_queue and sync_priority_queue conform to the sync_queue interface. Aapt the test to the new interface.
2014-11-02 15:13:37 +01:00
Vicente J. Botet Escriba
efab5af918
Fix inspection issue.
2014-11-02 15:11:28 +01:00
Vicente J. Botet Escriba
cbf9fe8a5c
Fix inspection issues.
2014-11-02 15:08:44 +01:00
Vicente J. Botet Escriba
6fd7dc0d94
Added move semantics for C++11 compilers. Need of a detail::priority_queue. Tried to do it for C++98, but heap_push/heap_pop algorithms are not move aware:(.
2014-11-01 22:18:32 +01:00
Vicente J. Botet Escriba
49d485f1aa
Removed BOOST_THREAD_QUEUE_DEPRECATE_OLD for priority and timed queues.
2014-11-01 11:21:09 +01:00
Vicente J. Botet Escriba
d5c41e4c4a
Added tyy_pus returning queue_op_status. Rename is_closed to closed.
2014-10-31 23:49:34 +01:00
Vicente J. Botet Escriba
304240b206
Move priority/timed queues to concurrent name space and scheduled executors to executors name spapce.
2014-10-31 08:03:15 +01:00
Vicente J. Botet Escriba
c61c139933
merged scheduled executors GSOC project from Ian Forbed.
2014-10-31 00:19:10 +01:00
Vicente J. Botet Escriba
69f2a1df72
Added fib_task_region example and allows to work without executors.
2014-10-26 13:21:25 +01:00
Vicente J. Botet Escriba
700301e382
Added exception_list and task_region.
2014-10-26 11:27:18 +01:00
Vicente J. Botet Escriba
952aa44a98
Added promise::emplace and variadic make_ready_future.
2014-10-25 23:31:09 +02:00
Vicente J. Botet Escriba
1029fa9c59
take in account deferred/ready futures on variadic when_all/when_any.
2014-10-12 15:47:16 +02:00
Vicente J. Botet Escriba
3e28ea806c
Added deferred then tests.
2014-10-11 07:33:57 +02:00
Vicente J. Botet Escriba
729c8b63bb
added missing file.
2014-10-05 09:06:52 +02:00
Vicente J. Botet Escriba
8fd4755e79
Added shared_future::then executor.
2014-10-04 10:36:57 +02:00
Vicente J. Botet Escriba
f3de7bf10f
Add fuutre::then(ex, fct).
2014-10-02 07:36:52 +02:00
Vicente J. Botet Escriba
c8cd7d1d08
don't check for is_ready on all the futures when using when_wny.
2014-09-29 00:19:18 +02:00
Vicente J. Botet Escriba
b973e9b32e
remove BOOST_THREAD_NO_CXX11_DECLTYPE_N3276.
2014-09-28 13:46:21 +02:00
Vicente J. Botet Escriba
8c5ba97d39
Don't use lambdas on test if not available.
2014-09-21 18:59:08 +02:00
Vicente J. Botet Escriba
00b25853b2
Added when_all/when_any iterators tests.
2014-09-20 16:05:19 +02:00
Vicente J. Botet Escriba
5091ad705f
Added when_any/variadic_pass.cpp.
2014-09-20 14:37:47 +02:00
Vicente J. Botet Escriba
b77f802c47
variadic when_all/when_any must retur tuple instead of vector even when all the types are the same..
2014-09-20 13:25:50 +02:00
Vicente J. Botet Escriba
27befdf26f
Added test for threads_specific_ptr<void>.
2014-09-14 21:49:31 +02:00
Vicente J. Botet Escriba
f73007910a
replace unique_ptr<T> by optional<T> on shared_state when rvalue references are supported by the compiler, as optional<T> doesn't use Boost.Move.
2014-09-14 21:12:44 +02:00
Vicente J. Botet Escriba
8c3cfacf06
emulate template alias queue views.
2014-09-14 21:00:27 +02:00
Vicente J. Botet Escriba
546ca909c4
try to avoid issue with < gcc-4.5 - error: 'is_copy_constructible' is not a member of 'std'.
2014-09-13 22:16:57 +02:00
Vicente J. Botet Escriba
5ee0e27b5a
add more try catch to trac the source of the error.
2014-09-12 22:50:56 +02:00
Vicente J. Botet Escriba
b4fd7fdeb1
fail test when exception cautch instead of rethrow it.
2014-09-11 13:33:43 +02:00
Vicente J. Botet Escriba
c75ea7db89
force the use of lambdas when available on multi_thread_pass test.
2014-09-11 13:32:11 +02:00
Vicente J. Botet Escriba
c632b75db1
fix uninitialized variable.
2014-09-11 07:29:53 +02:00
Vicente J. Botet Escriba
8440e9a7d8
add tests on non_intettuption_point::sleep_...
2014-09-10 13:42:15 +02:00
Vicente J. Botet Escriba
6d68bac44b
fix move semantic issues on promise::set_value. Prepare the use of unique_ptr<T,D> to fix allocator issue.
2014-09-09 13:21:01 +02:00
Vicente J. Botet Escriba
016f5653cf
Added when_all().then() tests.
2014-09-07 09:04:00 +02:00
Vicente J. Botet Escriba
ce46539183
Added when_all/when_any/queue_views tests.
2014-09-06 23:30:50 +02:00
Vicente J. Botet Escriba
234df13faf
remove BOOST_THREAD_USES_LOG.
2014-09-01 19:59:30 +02:00
Vicente J. Botet Escriba
f36f5d6dbb
Added more async deferred tests.
2014-08-31 18:16:14 +02:00
Vicente J. Botet Escriba
9ee1044f92
Merge branch 'develop' of github.com:boostorg/thread into develop
2014-08-31 09:00:04 +02:00
Vicente J. Botet Escriba
ebeb36646c
Add test for issue #10340 .
2014-08-31 08:59:40 +02:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
d5f335b8a4
Merge branch 'winrt2' of https://github.com/MSOpenTech/thread into MSOpenTech-winrt2
2014-08-30 17:16:17 +01:00
Vicente J. Botet Escriba
074dcbcbf5
make polymorphic queues move operations only available if C++11 RVALE supported.
2014-08-28 22:26:02 +02:00
Vicente J. Botet Escriba
af6f80a3c7
Added generic_executor_ref.cpp tp regression tests.
2014-08-27 13:36:58 +02:00
Vicente J. Botet Escriba
ea0889485e
Make use of BOOST_THREAD_COPYABLE_AND_MOVABLE and BOOST_THREAD_COPY_ASSIGN_REF when appropriated.
2014-08-24 18:16:28 +02:00
Vicente J. Botet Escriba
f3fa80c866
Added generic_executor_ref, queue_base and queue views, fix some issues in executors.
2014-08-23 18:29:47 +02:00
Vicente J. Botet Escriba
2037a64c51
Avoid pedantic clang watnings.
2014-08-21 19:17:27 +02:00
Vicente J. Botet Escriba
74132067ba
prepare tss<void>.
2014-07-31 19:29:19 +02:00
Steve Gates
a1faacd7bb
Fixing up copyrights that got reordered.
2014-07-09 16:43:48 -07:00
Steve Gates
866b78cbd0
Addressing more feedback:
...
Reverting disabling thread attributes for WinRT.
Created common GetSystemInfo/GetNativeSystemInfo function.
Fix this_thread get_id() bug on WinRT.
Enabled initializing the Windows Runtime in each test for execution. This
is not when using in Windows store/phone applications, just if a desktop
app.
2014-07-09 15:47:37 -07:00
Steve Gates
0861f81b05
Merge branch 'develop' of https://github.com/boostorg/thread into feedback
2014-07-08 14:53:47 -07:00
Steve Gates
6488028a22
Incorporating feedback: removed copyright, removed some ifdefs.
2014-07-08 14:53:39 -07:00
Vicente J. Botet Escriba
6e154d45a4
fix wait_pull_front issue introduced in previous commit and add more tests.
2014-07-06 11:05:51 +02:00
Vicente J. Botet Escriba
6074487b73
Fix isse on sync_bounded_queue::wait_push_front and add tests.
2014-07-05 19:38:10 +02:00
Vicente J. Botet Escriba
f75b2ca155
don't close the queue when an exception is throw, don't return empty on wait_pull_pull_front.
2014-07-05 14:57:10 +02:00
Vicente J. Botet Escriba
68be44ec06
Restore breaking change.
2014-07-05 10:34:22 +02:00
Vicente J. Botet Escriba
817591b87c
protect the use of && when BOOST_NO_CXX11_RVALUE_REFERENCES is defined.
2014-07-04 08:07:57 +02:00
Steve Gates
9ceea9822f
Enabling Boost.Thread to be used in the Windows Runtime.
...
This involves basically 3 changes:
1. Using __declspec(thread) instead of the Tls APIs.
2. Using Windows::System::Threading since Win32 Threading APIs aren't allowed.
3. Updating or replacing some banned APIs like WaitForSingleObject with WaitForSingleObjectEx.
2014-07-02 14:21:43 -07:00
Vicente J. Botet Escriba
fe195e776b
make use of underlying_cast<int> insted of int cast.
2014-06-12 19:43:16 +02:00
Vicente J. Botet Escriba
ca298c2c86
Don't use atomic<thread::id> and so don't use testable_mutex.
2014-06-09 15:41:42 +02:00
Vicente J. Botet Escriba
fcf7a1811e
make use of underlying_cast<int> when casting from an enum class.
2014-06-09 14:04:11 +02:00
Vicente J. Botet Escriba
4d52ef0740
Comment no more existing functions.
2014-04-28 18:41:53 +02:00
Vicente J. Botet Escriba
c3ab21a7ba
comment mingw toolset flags - #3967 .
2014-04-19 13:04:15 +02:00
Vicente J. Botet Escriba
73fbc520e8
extract async executor test.
2014-03-01 08:38:08 +01:00
Vicente J. Botet Escriba
7d4f485ade
Added test for #9303 .
2014-03-01 08:32:53 +01:00
Vicente J. Botet Escriba
a7400061c6
added test for #9711 .
2014-02-26 22:09:15 +01:00
Vicente J. Botet Escriba
9d1c957625
change check time to 500 ms.
2014-02-21 13:36:33 +01:00
Vicente J. Botet Escriba
1dbf7028fe
Try to workaround some issues with MSVC lambdas.
2014-02-21 10:52:18 +01:00
Vicente J. Botet Escriba
3f5823f50a
Add parallel_quick_sort example.
2014-02-16 17:25:49 +01:00
Vicente J. Botet Escriba
1d7da085ea
rename async_func.hpp by invoker.hpp.
2014-02-10 07:42:28 +01:00
Vicente J. Botet Escriba
75236fe3ae
rename async_func by invoker.
2014-02-09 16:53:19 +01:00