summaryrefslogtreecommitdiffstats
path: root/V8Binding/v8/src/debug-agent.cc
diff options
context:
space:
mode:
Diffstat (limited to 'V8Binding/v8/src/debug-agent.cc')
-rw-r--r--V8Binding/v8/src/debug-agent.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/V8Binding/v8/src/debug-agent.cc b/V8Binding/v8/src/debug-agent.cc
index 3dba53a..9d5cace 100644
--- a/V8Binding/v8/src/debug-agent.cc
+++ b/V8Binding/v8/src/debug-agent.cc
@@ -65,6 +65,7 @@ void DebuggerAgent::Run() {
// Accept connections on the bound port.
while (!terminate_) {
bool ok = server_->Listen(1);
+ listening_->Signal();
if (ok) {
// Accept the new connection.
Socket* client = server_->Accept();
@@ -93,6 +94,10 @@ void DebuggerAgent::Shutdown() {
}
+void DebuggerAgent::WaitUntilListening() {
+ listening_->Wait();
+}
+
void DebuggerAgent::CreateSession(Socket* client) {
ScopedLock with(session_access_);