Subject: [Boost-bugs] [Boost C++ Libraries] #11368: boost thread's usage of CreateWaitableTimer wakes PC from sleep (doh)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-06-01 19:40:17
#11368: boost thread's usage of CreateWaitableTimer wakes PC from sleep (doh)
------------------------------+------------------------
Reporter: denger | Owner: anthonyw
Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.58.0 | Severity: Regression
Keywords: |
------------------------------+------------------------
Hi,
after upgrading to boost 1.58 from 1.57 a lot of users complained that my
app was prematurely aborting the PC's sleep state. The culprit can easily
detected and it was indeed my process: "powercfg /lastwake"
It shows that the process had set a "wake timer". The changes in
boost/libs/thread/src/win32/thread.cpp seem to be the cause.
Please remove usage of "CreateWaitableTimer" in function
"interruptible_wait()" or at least provide some means (preprocessor
variable, whatever) to allow compilation of boost::thread without
"CreateWaitableTimer".
Thanks
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11368> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC