2
0
mirror of https://github.com/boostorg/thread.git synced 2026-01-27 07:22:11 +00:00
Commit Graph

2315 Commits

Author SHA1 Message Date
Peter Dimov
13959e3a5e Add -j3 to .travis.yml to reduce build time and avoid timeouts 2017-09-10 13:46:44 +03:00
Vicente J. Botet Escriba
3556f298c7 Merge branch 'develop' of github.com:boostorg/thread into develop 2017-09-09 18:42:58 +02:00
Vicente J. Botet Escriba
091e8c8088 reduce the number of travis jobs. 2017-09-09 18:42:23 +02:00
Vicente J. Botet Escriba
eda6b64491 Merge pull request #140 from SSE4/clang_windows_fixes
- switch to boost winapi, to avoid duplicated definitions when compil…
2017-09-07 00:56:11 +02:00
Vicente J. Botet Escriba
ee24ff8dd1 commit CI files. 2017-09-07 00:29:29 +02:00
SSE4
dfe39c630f Merge pull request #1 from Lastique/clang_windows_fixes_fixes
Fix compilation of Boost.WinAPI-based Boost.Thread
2017-09-06 09:36:01 +07: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
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
3ee73c866d INcrease the threashold of spourious timeouts. 2017-08-28 09:15:39 +02:00
Vicente J. Botet Escriba
584b9c2d29 Merge pull request #131 from Lastique/fix_ticket12730
Changed signatures of TLS cleanup hooks for consistency with MSVC RTL.
2017-08-27 20:57:04 +02:00
Andrey Semashev
349f59d92d Changed signatures of TLS cleanup hooks for consistency with MSVC RTL.
This should fix startup of executables statically linked with Boost.Thread
because of undefined return value of the thread/process startup hooks.

Should fix https://svn.boost.org/trac10/ticket/12730.
2017-08-27 19:17:23 +03:00
Vicente J. Botet Escriba
e99ec0a283 Update copyright. 2017-08-26 10:50:51 +02:00
Vicente J. Botet Escriba
5920e4c7af Update copyright. 2017-08-26 10:50:15 +02:00
Vicente J. Botet Escriba
13f3d7ed87 Update changes. 2017-08-26 10:48:11 +02:00
Vicente J. Botet Escriba
738ab19573 Update to new version 4.8.0with changes. 2017-08-26 10:41:58 +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
Vicente J. Botet Escriba
6a1eed0fa8 Merge pull request #129 from shinobu-x/wip-sk-20170815
Do not include same header twice
2017-08-16 07:41:23 +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
Vicente J. Botet Escriba
9579dc2056 Merge pull request #126 from Lastique/patch-6
Use BOOST_MAY_ALIAS from Boost.Config.
2017-08-03 23:02:41 +02:00
Vicente J. Botet Escriba
89e694cc56 Merge pull request #127 from dkolsen-pgi/sleep_until
Fix sleep_until() to use a realtime clock
2017-08-03 23:00:23 +02:00
David Olsen
047205fbbd Fix sleep_until() to use a realtime clock
boost::this_thread::no_interruption_point::hidden::sleep_until() takes an absolute time as a parameter and converts it to a duration for the length of time to sleep.  But the current time that the absolute time is compared against came from timespec_now(), which, on Linux at least, uses CLOCK_MONOTONIC, which "represents monotonic time since some unspecified starting point."  Since timespec_now() may have a different starting point than the time that was passed to sleep_until(), that can result in sleep_until() sleeping for an *extremely* long time, causing the program to appear to hang.

Change sleep_until() to get the current time from timespec_now_realtime(), which uses CLOCK_REALTIME, which has the same epoch as the time that is passed to sleep_until().
2017-08-02 15:19:32 -07: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
Vicente J. Botet Escriba
5f7dc381c7 Merge pull request #125 from vslavik/fix-comparison
Don't compare shared_ptr<> to 0
2017-06-07 17:57:21 +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
Vicente J. Botet Escriba
3bc883d114 Merge pull request #124 from florianbehrens/patch-1
Fixed future::then template argument in documentation.
2017-05-24 12:18:21 +02:00
Florian Behrens
2e2850ff94 Fixed future::then template argument in documentation. 2017-05-24 12:03:38 +02:00
Vicente J. Botet Escriba
1a8019f499 Merge pull request #123 from Lastique/fix_entry_manager
Fix entry_manager constructor not accepting entry_ptr rvalue
2017-05-23 21:54:30 +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
Vicente J. Botet Escriba
f78b10a450 Merge pull request #122 from vincenthsu/develop
Fix sync_bounded_queue<>::size()
2017-05-11 01:33:43 +02: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