mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
Fix a typo in tokio_reactor::PollEvented (#250)
`read_readiness` -> `write_readiness` in *write* methods
This commit is contained in:
parent
6bdfa159a7
commit
69e45f4be4
@ -341,7 +341,7 @@ where E: Evented
|
||||
pub fn clear_write_ready(&self) -> io::Result<()> {
|
||||
let ready = mio::Ready::writable();
|
||||
|
||||
self.inner.read_readiness.fetch_and(!ready.as_usize(), Relaxed);
|
||||
self.inner.write_readiness.fetch_and(!ready.as_usize(), Relaxed);
|
||||
|
||||
if self.poll_write_ready()?.is_ready() {
|
||||
// Notify the current task
|
||||
@ -356,7 +356,7 @@ where E: Evented
|
||||
pub fn clear_write_ready2(&self, cx: &mut futures2::task::Context) -> io::Result<()> {
|
||||
let ready = mio::Ready::writable();
|
||||
|
||||
self.inner.read_readiness.fetch_and(!ready.as_usize(), Relaxed);
|
||||
self.inner.write_readiness.fetch_and(!ready.as_usize(), Relaxed);
|
||||
|
||||
if self.poll_write_ready2(cx)?.is_ready() {
|
||||
// Notify the current task
|
||||
|
Loading…
x
Reference in New Issue
Block a user