You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Tim Armstrong (Jira)" <ji...@apache.org> on 2020/02/21 18:44:00 UTC

[jira] [Commented] (IMPALA-8013) Switch from boost:: to std:: locks

    [ https://issues.apache.org/jira/browse/IMPALA-8013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17042094#comment-17042094 ] 

Tim Armstrong commented on IMPALA-8013:
---------------------------------------

We did most of the switch, except for shared_mutex, which is in c++17 only: https://en.cppreference.com/w/cpp/thread/shared_mutex

There's some complications about shared_timed_mutex vs shared_mutex, but long and short is that gcc7 is sufficient to give us the support we need: https://stackoverflow.com/a/42302130

> Switch from boost:: to std:: locks
> ----------------------------------
>
>                 Key: IMPALA-8013
>                 URL: https://issues.apache.org/jira/browse/IMPALA-8013
>             Project: IMPALA
>          Issue Type: Improvement
>          Components: Backend
>            Reporter: Tim Armstrong
>            Assignee: Tim Armstrong
>            Priority: Trivial
>              Labels: newbie
>
> We use boost::unique_lock, boost::lock_guard, boost::mutex, etc throughout the backend. There are now standard library equivalents. It would be good to switch to them and remove the dependency on that part of boost.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org