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

Unified Diff: base/sync_socket.h

Issue 22886005: Switch audio synchronization from sleep() based to select() based. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | base/sync_socket_posix.cc » ('j') | base/sync_socket_posix.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sync_socket.h
diff --git a/base/sync_socket.h b/base/sync_socket.h
index 8ba3f6c2652f0a02e97066dae40f821387b253c3..f9c71930c3255cc6946aab7b16a3dd8b9e40446d 100644
--- a/base/sync_socket.h
+++ b/base/sync_socket.h
@@ -57,6 +57,7 @@ class BASE_EXPORT SyncSocket {
// length is the number of bytes of data to receive (must be non-zero).
// Returns the number of bytes received, or 0 upon failure.
virtual size_t Receive(void* buffer, size_t length);
+ virtual size_t Receive(void* buffer, size_t length, base::TimeDelta timeout);
henrika (OOO until Aug 14) 2013/08/20 07:50:30 Extend comment for new parameter.
DaleCurtis 2013/09/11 01:16:03 Done.
// Returns the number of bytes available. If non-zero, Receive() will not
// not block when called. NOTE: Some implementations cannot reliably
« no previous file with comments | « no previous file | base/sync_socket_posix.cc » ('j') | base/sync_socket_posix.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698