Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(688)

Unified Diff: device/serial/serial_io_handler_posix.h

Issue 2201893008: [serial] Only add a watcher if if the immeidate read attempt fails. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved to EAGAIN Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | device/serial/serial_io_handler_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_io_handler_posix.h
diff --git a/device/serial/serial_io_handler_posix.h b/device/serial/serial_io_handler_posix.h
index 28f10c434a7135ec14d4b1ea1e1d3dca6df1e90d..b25f7c8731bc8c18cafca04025e70b6c9576cf8f 100644
--- a/device/serial/serial_io_handler_posix.h
+++ b/device/serial/serial_io_handler_posix.h
@@ -49,7 +49,7 @@ class SerialIoHandlerPosix : public SerialIoHandler,
scoped_refptr<base::SingleThreadTaskRunner> ui_thread_task_runner);
~SerialIoHandlerPosix() override;
- void AttemptRead(bool within_read);
+ bool AttemptRead(bool within_read);
void RunReadCompleted(bool within_read,
int bytes_read,
serial::ReceiveError error);
« no previous file with comments | « no previous file | device/serial/serial_io_handler_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698