[Boost-bugs] [Boost C++ Libraries] #12744: winapi::set_timer_resolution inadvertently changes timer resolution (Windows)

Subject: [Boost-bugs] [Boost C++ Libraries] #12744: winapi::set_timer_resolution inadvertently changes timer resolution (Windows)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-01-10 19:04:01


#12744: winapi::set_timer_resolution inadvertently changes timer resolution
(Windows)
------------------------------------+--------------------------
 Reporter: Terry Kim <yuminkim@…> | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
  Version: Boost 1.63.0 | Severity: Problem
 Keywords: timer resolution |
------------------------------------+--------------------------
 boost::interprocess::ipcdetail::spin_wait calls
 get_system_tick_in_highres_counts(), which ultimately calls
 winapi::set_timer_resolution() to get the current timer resolution.
 However, this changes the timer resolution inadvertently.

 I verified this with PwrTest.exe
 (https://msdn.microsoft.com/windows/hardware/drivers/devtest/pwrtest).

 Can we use winapi::query_timer_resolution() instead of
 winapi::set_timer_resolution()?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12744>
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:20 UTC