blob: 8f5d0c6baf80fde2faaebd2981335270c0f5716c [file] [log] [blame]
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "bin/lockers.h"
#include "bin/thread.h"
namespace dart {
namespace bin {
class DebuggerConnectionImpl {
static void StartHandler(int port_number);
static void StopHandler(intptr_t debug_fd);
static intptr_t Send(intptr_t socket, const char* buf, int len);
static intptr_t Receive(intptr_t socket, char* buf, int len);
static void ThreadEntry(uword args);
static void NotifyThreadStarted();
static void WaitForThreadStarted();
static void NotifyThreadFinished();
static void WaitForThreadFinished();
static Monitor* handler_monitor_;
static ThreadId handler_thread_id_;
static bool handler_thread_running_;
} // namespace bin
} // namespace dart