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

Side by Side Diff: runtime/bin/eventhandler.cc

Issue 463993002: - Separate the thread implementation used in bin/ and vm/ (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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 #include "bin/dartutils.h" 5 #include "bin/dartutils.h"
6 #include "bin/eventhandler.h" 6 #include "bin/eventhandler.h"
7 #include "bin/socket.h" 7 #include "bin/socket.h"
8 #include "bin/thread.h"
9 8
10 #include "include/dart_api.h" 9 #include "include/dart_api.h"
11 10
12 11
13 namespace dart { 12 namespace dart {
14 namespace bin { 13 namespace bin {
15 14
16 static const intptr_t kTimerId = -1; 15 static const intptr_t kTimerId = -1;
17 static const intptr_t kInvalidId = -2; 16 static const intptr_t kInvalidId = -2;
18 17
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 if (Dart_IsError(handle)) { 99 if (Dart_IsError(handle)) {
101 Dart_PropagateError(handle); 100 Dart_PropagateError(handle);
102 UNREACHABLE(); 101 UNREACHABLE();
103 } 102 }
104 int64_t data = DartUtils::GetIntegerValue(Dart_GetNativeArgument(args, 2)); 103 int64_t data = DartUtils::GetIntegerValue(Dart_GetNativeArgument(args, 2));
105 event_handler->SendData(id, dart_port, data); 104 event_handler->SendData(id, dart_port, data);
106 } 105 }
107 106
108 } // namespace bin 107 } // namespace bin
109 } // namespace dart 108 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698