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

Side by Side Diff: runtime/bin/dbg_connection_macos.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_linux.h ('k') | runtime/bin/dbg_connection_win.h » ('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_MACOS_H_ 5 #ifndef BIN_DBG_CONNECTION_MACOS_H_
6 #define BIN_DBG_CONNECTION_MACOS_H_ 6 #define BIN_DBG_CONNECTION_MACOS_H_
7 7
8 #include <arpa/inet.h> 8 #include <arpa/inet.h>
9 #include <netdb.h> 9 #include <netdb.h>
10 #include <sys/socket.h> 10 #include <sys/socket.h>
11 11
12 12
13 namespace dart { 13 namespace dart {
14 namespace bin { 14 namespace bin {
15 15
16 class DebuggerConnectionImpl { 16 class DebuggerConnectionImpl {
17 public: 17 public:
18 static void StartHandler(int port_number); 18 static void StartHandler(int port_number);
19 static void StopHandler(intptr_t debug_fd) {}
19 static intptr_t Send(intptr_t socket, const char* buf, int len); 20 static intptr_t Send(intptr_t socket, const char* buf, int len);
20 static intptr_t Receive(intptr_t socket, char* buf, int len); 21 static intptr_t Receive(intptr_t socket, char* buf, int len);
21 22
22 private: 23 private:
23 enum MessageType { 24 enum MessageType {
24 kAddDbgFd = 1, 25 kAddDbgFd = 1,
25 kRemoveDbgFd, 26 kRemoveDbgFd,
26 kQuit 27 kQuit
27 }; 28 };
28 29
(...skipping 13 matching lines...) Expand all
42 // File descriptors for pipes used to communicate with the debugger thread. 43 // File descriptors for pipes used to communicate with the debugger thread.
43 static int wakeup_fds_[2]; 44 static int wakeup_fds_[2];
44 // File descriptor for the polling queue. 45 // File descriptor for the polling queue.
45 static int kqueue_fd_; 46 static int kqueue_fd_;
46 }; 47 };
47 48
48 } // namespace bin 49 } // namespace bin
49 } // namespace dart 50 } // namespace dart
50 51
51 #endif // BIN_DBG_CONNECTION_MACOS_H_ 52 #endif // BIN_DBG_CONNECTION_MACOS_H_
OLDNEW
« no previous file with comments | « runtime/bin/dbg_connection_linux.h ('k') | runtime/bin/dbg_connection_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698