| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BIN_DBG_CONNECTION_WIN_H_ | 5 #ifndef BIN_DBG_CONNECTION_WIN_H_ |
| 6 #define BIN_DBG_CONNECTION_WIN_H_ | 6 #define BIN_DBG_CONNECTION_WIN_H_ |
| 7 | 7 |
| 8 #include "bin/lockers.h" |
| 9 #include "bin/thread.h" |
| 10 |
| 8 namespace dart { | 11 namespace dart { |
| 9 namespace bin { | 12 namespace bin { |
| 10 | 13 |
| 11 class DebuggerConnectionImpl { | 14 class DebuggerConnectionImpl { |
| 12 public: | 15 public: |
| 13 static void StartHandler(int port_number); | 16 static void StartHandler(int port_number); |
| 17 static void StopHandler(intptr_t debug_fd); |
| 14 static intptr_t Send(intptr_t socket, const char* buf, int len); | 18 static intptr_t Send(intptr_t socket, const char* buf, int len); |
| 15 static intptr_t Receive(intptr_t socket, char* buf, int len); | 19 static intptr_t Receive(intptr_t socket, char* buf, int len); |
| 16 | 20 |
| 17 private: | 21 private: |
| 18 static void ThreadEntry(uword args); | 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_; |
| 19 }; | 31 }; |
| 20 | 32 |
| 21 } // namespace bin | 33 } // namespace bin |
| 22 } // namespace dart | 34 } // namespace dart |
| 23 | 35 |
| 24 #endif // BIN_DBG_CONNECTION_WIN_H_ | 36 #endif // BIN_DBG_CONNECTION_WIN_H_ |
| OLD | NEW |