Joe McDonnell created IMPALA-13980:
--------------------------------------

             Summary: Replace boost::shared_mutex/shared_lock with 
std::shared_mutex/shared_lock
                 Key: IMPALA-13980
                 URL: https://issues.apache.org/jira/browse/IMPALA-13980
             Project: IMPALA
          Issue Type: Task
          Components: Backend
    Affects Versions: Impala 5.0.0
            Reporter: Joe McDonnell


With C++17, the standard library now has a reader/writer shared_mutex. It is 
not identical to the boost version, but it can replace most uses. The 
implementation avoids writer starvation. We should switch most 
shared_mutex/shared_lock locations to the standard library.

One functionality difference is that boost has an upgrade_mutex that allows 
upgrading a lock from shared to exclusive. This is not supported by the STL 
version. We'll have to leave those locations unchanged.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to