| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 #ifndef BIN_DBG_CONNECTION_WIN_H_ | |
| 6 #define BIN_DBG_CONNECTION_WIN_H_ | |
| 7 | |
| 8 #include "bin/lockers.h" | |
| 9 #include "bin/thread.h" | |
| 10 | |
| 11 namespace dart { | |
| 12 namespace bin { | |
| 13 | |
| 14 class DebuggerConnectionImpl { | |
| 15 public: | |
| 16 static void StartHandler(int port_number); | |
| 17 static void StopHandler(intptr_t debug_fd); | |
| 18 static intptr_t Send(intptr_t socket, const char* buf, int len); | |
| 19 static intptr_t Receive(intptr_t socket, char* buf, int len); | |
| 20 | |
| 21 private: | |
| 22 static void ThreadEntry(uword args); | |
| 23 static void NotifyThreadStarted(); | |
| 24 static void WaitForThreadStarted(); | |
| 25 static void NotifyThreadFinished(); | |
| 26 static void WaitForThreadFinished(); | |
| 27 | |
| 28 static Monitor* handler_monitor_; | |
| 29 static ThreadId handler_thread_id_; | |
| 30 static bool handler_thread_running_; | |
| 31 }; | |
| 32 | |
| 33 } // namespace bin | |
| 34 } // namespace dart | |
| 35 | |
| 36 #endif // BIN_DBG_CONNECTION_WIN_H_ | |
| OLD | NEW |