Anton Indrawan created THRIFT-4199:
--------------------------------------

             Summary: Replace timed_wait by wait_for as it blocks indefinitely
                 Key: THRIFT-4199
                 URL: https://issues.apache.org/jira/browse/THRIFT-4199
             Project: Thrift
          Issue Type: Bug
          Components: C++ - Library
    Affects Versions: 1.0
         Environment: - x86 Linux , x64 Linux (Ubuntu 14.04).
- armv7 Linux

            Reporter: Anton Indrawan


Thrift still uses the timed_wait function which is (soon to be) deprecated from 
boost's condition_variable.

That function blocks indefinitely if thrift is linked against boost v1.63 
libraries compiled with BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC.
It is a known [boost issue|https://svn.boost.org/trac/boost/ticket/12728] and 
boost mentioned to use the chrono interface which is the {{wait_for}} function.

Currently, thrift uses the timed_wait function in:
- 
https://github.com/apache/thrift/blob/master/lib/cpp/src/thrift/concurrency/BoostMonitor.cpp




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to