mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-30 00:00:16 +02:00
Fix a typo in tokio_reactor::PollEvented (#250)
`read_readiness` -> `write_readiness` in *write* methods
This commit is contained in:
@@ -341,7 +341,7 @@ where E: Evented
|
|||||||
pub fn clear_write_ready(&self) -> io::Result<()> {
|
pub fn clear_write_ready(&self) -> io::Result<()> {
|
||||||
let ready = mio::Ready::writable();
|
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() {
|
if self.poll_write_ready()?.is_ready() {
|
||||||
// Notify the current task
|
// Notify the current task
|
||||||
@@ -356,7 +356,7 @@ where E: Evented
|
|||||||
pub fn clear_write_ready2(&self, cx: &mut futures2::task::Context) -> io::Result<()> {
|
pub fn clear_write_ready2(&self, cx: &mut futures2::task::Context) -> io::Result<()> {
|
||||||
let ready = mio::Ready::writable();
|
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() {
|
if self.poll_write_ready2(cx)?.is_ready() {
|
||||||
// Notify the current task
|
// Notify the current task
|
||||||
|
|||||||
Reference in New Issue
Block a user