forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Hi!
I was playing around with this project and seeing if any of my code would work on a platform this old.
I tried this following snippet of code, but it always returns a "WouldBlock" failure. I see that on this version of the compiler, there are a few different Mutex implementations based on what support is available. Is the Mutex implementation that is used on Windows 98 incompatible with this try_lock() method?
let mutex = Mutex::new(1);
let guard = mutex.try_lock();
match guard {
Ok(_) => {
println!("Got lock!");
},
Err(e) => {
println!("{:#?}", e);
}
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working