Re: [Boost-bugs] [Boost C++ Libraries] #11368: boost thread's usage of CreateWaitableTimer wakes PC from sleep (doh)

Subject: Re: [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-28 13:22:57


#11368: boost thread's usage of CreateWaitableTimer wakes PC from sleep (doh)
-------------------------------+------------------------
  Reporter: denger | Owner: ned14
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.58.0 | Severity: Regression
Resolution: | Keywords:
-------------------------------+------------------------

Comment (by ned14):

 Replying to [comment:3 anonymous]:
> The problem isn't the use of waitable timers per se, but the use of
 `SetWaitableTimerEx`, which always wakes the system from sleep if
 possible. Boost.Thread should revert to using plain `SetWaitableTimer`,
 ensuring that `false` is passed for the `bResume` parameter so that the
 timer doesn't wake the system.

 https://social.msdn.microsoft.com/Forums/vstudio/en-
 US/8047b845-2a1b-4220-a4b7-b10234bce924/unable-to-resume-in-windows-7
 -through-set-waitable-timer?forum=vcgeneral claimed that resumption of
 power from SetWaitableTimerEx didn't work. I therefore made the untested
 assumption that the WAKE_CONTEXT I passed didn't wake the machine.

 I'll test that over here and see what I can figure out. The Microsoft
 documentation on WAKE_CONTEXT approaches nil unfortunately.

 Niall

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11368#comment:6>
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