Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8706883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:43:39+00:00 2026-06-13T03:43:39+00:00

I am missing very much from the new standard the std::shared_lock template class. In

  • 0

I am missing very much from the new standard the std::shared_lock template class.
In Boost.Thread there is boost::shared_lock, even boost::upgrade_lock exists.

Why is that, there is no std::shared_lock and std::unique_lock in C++11?
How is it possible to acquire a similar behavior as boost::shared_lock has, but in pure C++11?

I was thinking to use boost::shared_lock<std::mutex>, but this doesn’t have so much sense, since std::mutex does not have a lock_shared() member. And also, there is no such as std::shared_mutex.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T03:43:40+00:00Added an answer on June 13, 2026 at 3:43 am

    Howard’s proposal for std::shared_mutex was turned down for C++11 due to lack of time to consider it properly. He’s proposed it again for C++17, and it’s being discussed at the meeting in Portland this week.

    In the mean time, if you can use Boost then you may as well; there won’t be any new functionality for it being standardized.

    That said, it’s worth checking that using shared_mutex is actually of benefit — in many cases it doesn’t provide the hoped-for performance gains due to contention on the mutex itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think I'm missing something very obvious and its making my brain hurt. class
i'm missing something fundamental here. i have a very simple custom class that draws
Is there some trick that I'm missing here? I've created a templated control, very
I'm from a very much C/Java type background. I'm used to text maybe being
i am very much new to Entity Framework and i just used this in
I'm very new to JQuery and don't have much experience with javascript at all,
I'm probably missing something very basic but I cannot figure out why I get
I must be missing something very simple, but can't find the answer to this.
I hope I am not missing something very obvious here, I want to get
I'm pretty sure I'm missing something very elementary here as I'm normally ok with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.