std: Rename unstable::mutex::Mutex to StaticNativeMutex.

This better reflects its purpose and design.
This commit is contained in:
Huon Wilson
2014-02-15 11:18:49 +11:00
parent 75d92dbabe
commit b87ed605c0
13 changed files with 69 additions and 65 deletions

View File

@@ -152,8 +152,8 @@ pub mod dl {
}
pub fn check_for_errors_in<T>(f: || -> T) -> Result<T, ~str> {
use unstable::mutex::{Mutex, MUTEX_INIT};
static mut lock: Mutex = MUTEX_INIT;
use unstable::mutex::{StaticNativeMutex, NATIVE_MUTEX_INIT};
static mut lock: StaticNativeMutex = NATIVE_MUTEX_INIT;
unsafe {
// dlerror isn't thread safe, so we need to lock around this entire
// sequence