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

Implement a native mutex type #10479

Merged
merged 3 commits into from
Nov 19, 2013
Merged

Commits on Nov 19, 2013

  1. Implement a native mutex type

    This mutex is built on top of pthreads for unix and the related windows apis on
    windows. This is a straight port of the lock_and_signal type from C++ to rust.
    Almost all operations on the type are unsafe, and it's definitely not
    recommended for general use.
    
    Closes rust-lang#9105
    alexcrichton committed Nov 19, 2013
    Configuration menu
    Copy the full SHA
    24eb1b4 View commit details
    Browse the repository at this point in the history
  2. Remove the C++ lock_and_signal type

    A the same time this purges all runtime support needed for statically
    initialized mutexes, moving all users over to the new Mutex type instead.
    alexcrichton committed Nov 19, 2013
    Configuration menu
    Copy the full SHA
    e8bf078 View commit details
    Browse the repository at this point in the history
  3. Move runtime files to C instead of C++

    Explicitly have the only C++ portion of the runtime be one file with exception
    handling. All other runtime files must now live in C and be fully defined in C.
    alexcrichton committed Nov 19, 2013
    5 Configuration menu
    Copy the full SHA
    508b7b9 View commit details
    Browse the repository at this point in the history