We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb5db3b commit a038d27Copy full SHA for a038d27
src/libcore/sys.rs
@@ -105,17 +105,17 @@ class unlock {
105
106
impl methods for lock_and_signal {
107
unsafe fn lock<T>(f: fn() -> T) -> T {
108
- rustrt::rust_lock_cond_lock(self.lock);
109
- let _r = unlock(self.lock);
110
do atomically {
+ rustrt::rust_lock_cond_lock(self.lock);
+ let _r = unlock(self.lock);
111
f()
112
}
113
114
115
unsafe fn lock_cond<T>(f: fn(condition) -> T) -> T {
116
117
118
119
f(condition_(self.lock))
120
121
0 commit comments