Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganise std::unstable::mutex to add an RAII unlocker to the mutex & replace LittleLock #12235

Closed
wants to merge 7 commits into from

Commits on Feb 15, 2014

  1. std: add an RAII unlocker to Mutex.

    This automatically unlocks its lock when it goes out of scope, and
    provides a safe(ish) method to call .wait.
    huonw committed Feb 15, 2014
    Configuration menu
    Copy the full SHA
    76a59fd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    75d92db View commit details
    Browse the repository at this point in the history
  3. std: Rename unstable::mutex::Mutex to StaticNativeMutex.

    This better reflects its purpose and design.
    huonw committed Feb 15, 2014
    Configuration menu
    Copy the full SHA
    b87ed60 View commit details
    Browse the repository at this point in the history
  4. std: add a NativeMutex type as a wrapper to destroy StaticNativeMutex.

    This obsoletes LittleLock, and so it is removed.
    huonw committed Feb 15, 2014
    Configuration menu
    Copy the full SHA
    0937f65 View commit details
    Browse the repository at this point in the history
  5. sync: Add #[must_use] to the Mutex guard.

    This helps people remember to save the return value to keep the mutex
    locked as appropriate.
    huonw committed Feb 15, 2014
    Configuration menu
    Copy the full SHA
    0f4294b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5d86e24 View commit details
    Browse the repository at this point in the history
  7. 5 Configuration menu
    Copy the full SHA
    4668cdf View commit details
    Browse the repository at this point in the history