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

@@ -144,9 +144,9 @@ Accessing environment variables is not generally threadsafe.
Serialize access through a global lock.
*/
fn with_env_lock<T>(f: || -> T) -> T {
use unstable::mutex::{Mutex, MUTEX_INIT};
use unstable::mutex::{StaticNativeMutex, NATIVE_MUTEX_INIT};
static mut lock: Mutex = MUTEX_INIT;
static mut lock: StaticNativeMutex = NATIVE_MUTEX_INIT;
unsafe {
let _guard = lock.lock();