std,green: Mark some queue types as NoShare

This commit is contained in:
Alex Crichton
2014-05-20 18:54:31 -07:00
parent 54f6eacf34
commit fdf935a524
5 changed files with 26 additions and 16 deletions

View File

@@ -138,7 +138,7 @@ impl UnixStream {
fn lock_nonblocking<'a>(&'a self) -> net::Guard<'a> {
let ret = net::Guard {
fd: self.fd(),
guard: self.inner.lock.lock(),
guard: unsafe { self.inner.lock.lock() },
};
assert!(util::set_nonblocking(self.fd(), true).is_ok());
ret