Boost C++ Libraries: Ticket #12389: Timer expires immediately on Ubuntu 64-bit using boost 1.61 https://svn.boost.org/trac10/ticket/12389 <p> We are using boost:chrono and boost:thread for the Timer implementation. We have multi library application. Our libraries are linked with dynamic boost libraries. Some of our libraries with defined BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC and some without this define. After mixing this define we found out that timers expires immediately after they are started. If we defined BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC in all libraries then we didn't found this problem. We need this define to avoid problems described in boost ticket 11562. </p> <p> More details about our implementation can be found in boost ticket 11562 </p> <blockquote> <p> <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/11562"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/11562</a> </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12389 Trac 1.4.3 viboes Mon, 15 Aug 2016 17:18:43 GMT <link>https://svn.boost.org/trac10/ticket/12389#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12389#comment:1</guid> <description> <p> How is it that you have BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC some times defined and others not? </p> <p> Could you elaborate how <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/11562" title="#11562: Bugs: (condition_variable_any::wait_until + recursive_mutex + steady_clock) ... (closed: fixed)">#11562</a> is related? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Mon, 15 Aug 2016 17:35:15 GMT</pubDate> <title>owner, status changed https://svn.boost.org/trac10/ticket/12389#comment:2 https://svn.boost.org/trac10/ticket/12389#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket anonymous Tue, 16 Aug 2016 06:32:17 GMT <link>https://svn.boost.org/trac10/ticket/12389#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12389#comment:3</guid> <description> <p> Our library needs the definition BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC, to assure system time changes do not affect timer timeout time - ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/11562" title="#11562: Bugs: (condition_variable_any::wait_until + recursive_mutex + steady_clock) ... (closed: fixed)">#11562</a> was mentioned only, so you can check how our timers are implemented. </p> <p> Other libraries that are linked to same application, were not written by us - they work ok without the definition BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC, a test build with this defition however failed in runtime. </p> <p> General question is - is it required to have the same definition in all libraries used in application? If so, this is sometimes hard to achieve - e.g.: when you have libraries from different vendors linked together. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Fri, 19 Aug 2016 21:31:23 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12389#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12389#comment:4</guid> <description> <p> Yes, is it required. BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC is something that is deduced from the underlying system. Either the system has them or it hasn't. BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC can be defined by the user only as a workaround to fix an issue on the Boost library. </p> <p> We could as well issue an error if the user defines it. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Fri, 19 Aug 2016 22:04:00 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/12389#comment:5 https://svn.boost.org/trac10/ticket/12389#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">worksforme</span> </li> </ul> Ticket