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

Unified Diff: runtime/bin/eventhandler_win.h

Issue 312743002: Use 'Directory.watch' on Windows in pkg/watcher, instead of pooling. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes Created 6 years, 6 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
Index: runtime/bin/eventhandler_win.h
diff --git a/runtime/bin/eventhandler_win.h b/runtime/bin/eventhandler_win.h
index e1f96f7a90d2e991b9adf6131124c5a72d49551a..92741a537e38af2b672452c1871709361c367e5c 100644
--- a/runtime/bin/eventhandler_win.h
+++ b/runtime/bin/eventhandler_win.h
@@ -93,7 +93,7 @@ class OverlappedBuffer {
wbuf_.buf = GetBufferStart();
wbuf_.len = GetBufferSize();
return &wbuf_;
- };
+ }
void set_data_length(int data_length) { data_length_ = data_length; }
@@ -349,6 +349,8 @@ class DirectoryWatchHandle : public Handle {
virtual bool IssueRead();
+ void Stop();
+
private:
int events_;
bool recursive_;
@@ -382,7 +384,7 @@ class ListenSocket : public SocketHandle {
ASSERT(!HasPendingAccept());
ASSERT(accepted_head_ == NULL);
ASSERT(accepted_tail_ == NULL);
- };
+ }
// Socket interface exposing normal socket operations.
ClientSocket* Accept();
@@ -439,7 +441,7 @@ class ClientSocket : public SocketHandle {
ASSERT(!HasPendingWrite());
ASSERT(next_ == NULL);
ASSERT(closed_ == true);
- };
+ }
void Shutdown(int how);
@@ -484,7 +486,7 @@ class DatagramSocket : public SocketHandle {
// Don't delete this object until all pending requests have been handled.
ASSERT(!HasPendingRead());
ASSERT(!HasPendingWrite());
- };
+ }
// Internal interface used by the event handler.
virtual bool IssueRecvFrom();

Powered by Google App Engine
This is Rietveld 408576698