Andrey Semashev
49ab2e8619
Fixed compilation with MSVC-8.
...
Make sure _WIN32_WINNT is defined when windows.h is included. This is
achieved by (a) making sure boost/detail/winapi/config.hpp is included
before any other headers and (b) BOOST_USE_WINDOWS_H is defined so that
the header defines _WIN32_WINNT based on the default target Windows
version. This ensures that all APIs used by the implementation are
available.
Also extracted WIN32_LEAN_AND_MEAN definition to the Jamfile so that it is
consistently defined for all translation units instead of only tss*.cpp.
2016-07-16 19:50:46 +03: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
317a735836
try to manage with #12036 .
2016-03-05 11:07:54 +01:00
Andrey Semashev
408d82ded9
Fixed compilation on Windows
...
Add a missing include for get_milliseconds_until and namespace qualification.
2016-02-27 21:48:23 +03:00
Vicente J. Botet Escriba
ddd26b5bb8
remove comments after \ continuator macro.
2015-10-04 18:06:59 +02:00
Vicente J. Botet Escriba
9a8759a3dd
rollback physical_concurrency changes and take care of patch #10788 . #11683 .
2015-09-27 15:14:58 +02:00
Vicente J. Botet Escriba
9ac736a4c4
Apply patch fromPR - Do not wake up computer from sleep. #11368 .
2015-09-27 14:30:16 +02:00
Ben Wiederhake
baca517058
Avoid deprecated auto_ptr
2015-09-19 18:14:41 +02: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
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
cf1182ee99
Disable physical_concurrency() on Mingw32 alone.
2015-02-18 15:19:48 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
6a427ac4b6
Fix physical_concurrency() on win32.
2015-02-16 18:03:46 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
9c67be287e
Fix warning on mingw about casting a function pointer through a void *.
...
Fix warning on MSVC about GetModuleHandle potentially failing.
2015-02-06 12:04:22 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
f599783444
Fixed the MSVC10 breakage caused by coalesced timers support.
2015-02-06 11:51:37 +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
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
dfe95b3f2c
Fixed MSVC static analyser warning about writing off the end of an array.
2014-12-14 01:15:49 +00:00
Jürgen Hunold
8e1be55c6d
No comment after preprocessor continuation for msvc-12.0
2014-12-05 22:11:35 +01:00
Tim Blechmann
8c7275cb9e
thread: physical_concurrency - return 0 instead of hardware_concurrency on failure
2014-11-29 11:44:04 +01:00
Tim Blechmann
14c5cff2ee
thread: physical_concurrency - windows xp does not provide GetLogicalProcessorInformation
2014-11-29 11:43:36 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
6552cf64b5
Fixed up WinRT support patch not compiling on WinRT.
2014-08-30 18:24:13 +01:00
Steve Gates
a06dde3794
Merge branch 'develop' into winrt2
...
Conflicts:
include/boost/thread/win32/thread_primitives.hpp
src/win32/gettickcount64.cpp
2014-07-18 12:19:46 -07: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
6488028a22
Incorporating feedback: removed copyright, removed some ifdefs.
2014-07-08 14:53:39 -07:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
04c53415fd
Extracted the original GetTicksCount64 de-cruft patch and rebased on boostorg/thread:develop.
2014-07-05 16:38:17 +01: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
82379f83a8
fix #9673 .
2014-02-26 18:48:02 +01:00
Vicente J. Botet Escriba
54646e9959
Added sleep_for/until with no interruption point.
2014-02-16 23:33:03 +01:00
Tim Blechmann
7756df2ce0
thread: physical_concurrency - avoid c++03-style vector::data
...
[SVN r86226]
2013-10-10 14:53:37 +00:00
Tim Blechmann
fc65611e82
Revert "Thread: provide physical concurrency conditional until it no regression is introduced."
...
This reverts commit 271ba281aecd5c556b2b863a9f05a8066e717854.
[SVN r86215]
2013-10-09 15:24:58 +00:00
Vicente J. Botet Escriba
4a63d4992c
Thread: provide physical concurrency conditional until it no regression is introduced.
...
[SVN r85926]
2013-09-26 06:54:33 +00:00
Tim Blechmann
04e3d918fb
thread: implement physical_concurrency
...
[SVN r85864]
2013-09-24 06:41:24 +00:00
Vicente J. Botet Escriba
858816b2d2
Thread: add detail:: to access detail::win32::GetTickCount64().
...
[SVN r85772]
2013-09-18 10:58:46 +00:00
Vicente J. Botet Escriba
4bc70444a4
Thread: try to fix SIGSEGV on win32 issue #7666 .
...
[SVN r85734]
2013-09-17 21:17:02 +00:00
Vicente J. Botet Escriba
5c78582794
Thread: refactor make_ready_at_thread_exit + inhibit at_thread_exit functions from external threads.
...
[SVN r85732]
2013-09-17 20:57:46 +00:00
Vicente J. Botet Escriba
5c88e6ce61
Thread: patch for #8070 to make use of GetTickCount64 when available.
...
[SVN r85714]
2013-09-16 19:43:37 +00:00
Vicente J. Botet Escriba
dc5a8a9c4e
Thread: try to handle with not needed definition of uintptr_t #8817 .
...
[SVN r85540]
2013-09-01 07:25:56 +00:00
Vicente J. Botet Escriba
ca3d7dab0b
Thread: remove warning
...
[SVN r83260]
2013-03-03 09:53:25 +00:00
Vicente J. Botet Escriba
75586eec0e
Thread: manage #7980
...
[SVN r82777]
2013-02-07 18:43:50 +00:00
Vicente J. Botet Escriba
e314bf03ce
Thread: fix issue when BOOST_THREAD_DONT_PROVIDE_INTERRUPTIONS is defined on win32/pthread.cpp
...
[SVN r82645]
2013-01-27 20:16:54 +00:00
Vicente J. Botet Escriba
a50176c259
Thread: rollback default version 3 change.
...
[SVN r82302]
2012-12-31 15:10:17 +00:00
Vicente J. Botet Escriba
c8edd6c795
Thread: minor refactorings
...
[SVN r81842]
2012-12-10 22:02:16 +00:00
Vicente J. Botet Escriba
593e9e0f2f
Thread: fix shared_ptr implicit conversion to bool introduced in [81780]
...
[SVN r81788]
2012-12-08 11:01:15 +00:00
Vicente J. Botet Escriba
03ebc320f1
Thread: set default version to 3
...
[SVN r81704]
2012-12-04 16:32:33 +00:00
Vicente J. Botet Escriba
0d9e8a0c3c
Thread: Towards removing DateTime dependency on the library binary file.
...
[SVN r81383]
2012-11-17 09:00:16 +00:00
Vicente J. Botet Escriba
0cd8326f21
Thread: deprecate nested scoped locks and DateTime based timed fuctions
...
[SVN r81279]
2012-11-10 10:25:33 +00:00
Vicente J. Botet Escriba
315af061cd
Thread: Added promise::set_..._at_thread_exit
...
[SVN r81172]
2012-11-04 16:47:02 +00:00
Vicente J. Botet Escriba
48f8c1c1c8
Thread Split lock.hpp + towards allowing to disable interruptions
...
[SVN r81106]
2012-10-29 19:57:01 +00:00
Vicente J. Botet Escriba
a3098b5dfd
Thread: Added BOOST_THREAD_DONT_PROVIDE_THREAD_EQ, BOOST_THREAD_DONT_USE_DATETIME and forbid their use when defined + Added BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION and future<>::then + Go towards don't throwing from the cpp files (refactor start_thread, join + Added #define BOOST_THREAD_VERSION 2 for the tests that runs only with version 2
...
[SVN r81023]
2012-10-20 14:05:32 +00:00
Vicente J. Botet Escriba
7b54159af3
Thread: Make use of BOOST_TRY family macros on win32 code
...
[SVN r80799]
2012-09-30 23:46:00 +00:00
Vicente J. Botet Escriba
dbefae706c
Thread: Fixed windows part of 7360
...
[SVN r80533]
2012-09-15 14:28:49 +00:00