Fall out of the std::sync rewrite

This commit is contained in:
Alex Crichton
2014-11-24 11:16:40 -08:00
parent 71d4e77db8
commit c3adbd34c4
19 changed files with 99 additions and 188 deletions

View File

@@ -225,8 +225,8 @@ pub mod dl {
}
pub fn check_for_errors_in<T>(f: || -> T) -> Result<T, String> {
use rustrt::mutex::{StaticNativeMutex, NATIVE_MUTEX_INIT};
static LOCK: StaticNativeMutex = NATIVE_MUTEX_INIT;
use sync::{StaticMutex, MUTEX_INIT};
static LOCK: StaticMutex = MUTEX_INIT;
unsafe {
// dlerror isn't thread safe, so we need to lock around this entire
// sequence