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

Side by Side Diff: runtime/bin/dbg_connection_win.h

Issue 1291163002: Join embeder threads on Windows. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « runtime/bin/dbg_connection_macos.h ('k') | runtime/bin/dbg_connection_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « runtime/bin/dbg_connection_macos.h ('k') | runtime/bin/dbg_connection_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698