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

Unified Diff: net/tools/quic/test_tools/server_thread.h

Issue 127633002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | « net/tools/quic/test_tools/quic_test_utils.h ('k') | net/tools/quic/test_tools/server_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/test_tools/server_thread.h
diff --git a/net/tools/quic/test_tools/server_thread.h b/net/tools/quic/test_tools/server_thread.h
index ed36c37b3494fe94b687d469d506293a3ec5b870..520fffb4427aaf1bc9a6e68a6e7d5b1a2bc3b844 100644
--- a/net/tools/quic/test_tools/server_thread.h
+++ b/net/tools/quic/test_tools/server_thread.h
@@ -33,12 +33,10 @@ class ServerThread : public base::SimpleThread {
// Waits for the handshake to be confirmed for the first session created.
void WaitForCryptoHandshakeConfirmed();
- // Pauses execution of the server until Resume() is called. May only be
- // called once.
+ // Pauses execution of the server until Resume() is called.
void Pause();
- // Resumes execution of the server after Pause() has been called. May only
- // be called once.
+ // Resumes execution of the server after Pause() has been called.
void Resume();
// Stops the server from executing and shuts it down, destroying all
@@ -56,12 +54,10 @@ class ServerThread : public base::SimpleThread {
private:
void MaybeNotifyOfHandshakeConfirmation();
+ base::Lock event_loop_mu_; // Held when the server is processing events.
base::WaitableEvent listening_; // Notified when the server is listening.
base::WaitableEvent confirmed_; // Notified when the first handshake is
// confirmed.
- base::WaitableEvent pause_; // Notified when the server should pause.
- base::WaitableEvent paused_; // Notitied when the server has paused
- base::WaitableEvent resume_; // Notified when the server should resume.
base::WaitableEvent quit_; // Notified when the server should quit.
tools::QuicServer server_;
« no previous file with comments | « net/tools/quic/test_tools/quic_test_utils.h ('k') | net/tools/quic/test_tools/server_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698