[ 
https://issues.apache.org/jira/browse/THRIFT-4199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sylwester Lachiewicz resolved THRIFT-4199.
------------------------------------------
    Resolution: Fixed

No {{timed_wait}} remains anywhere under lib/cpp — the concurrency primitives 
use {{std::condition_variable}} with {{wait_for}}. Resolving as Fixed.

> 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
>         Environment: - x86 Linux , x64 Linux (Ubuntu 14.04).
> - armv7 Linux
>            Reporter: Anton Indrawan
>            Priority: Major
>
> 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
(v8.20.10#820010)

Reply via email to