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

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

Issue 9875006: Remove unused thread pool from standalone VM binary. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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
« no previous file with comments | « runtime/bin/eventhandler_macos.cc ('k') | runtime/bin/main.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 #include "bin/eventhandler.h" 5 #include "bin/eventhandler.h"
6 6
7 #include <process.h> 7 #include <process.h>
8 #include <winsock2.h> 8 #include <winsock2.h>
9 #include <ws2tcpip.h> 9 #include <ws2tcpip.h>
10 #include <mswsock.h> 10 #include <mswsock.h>
11 11
12 #include "bin/builtin.h" 12 #include "bin/builtin.h"
13 #include "bin/dartutils.h" 13 #include "bin/dartutils.h"
14 #include "bin/socket.h" 14 #include "bin/socket.h"
15 #include "platform/thread.h"
15 16
16 17
17 static const int kInfinityTimeout = -1; 18 static const int kInfinityTimeout = -1;
18 19
19 20
20 int64_t GetCurrentTimeMilliseconds() { 21 int64_t GetCurrentTimeMilliseconds() {
21 static const int64_t kTimeEpoc = 116444736000000000LL; 22 static const int64_t kTimeEpoc = 116444736000000000LL;
22 23
23 // Although win32 uses 64-bit integers for representing timestamps, 24 // Although win32 uses 64-bit integers for representing timestamps,
24 // these are packed into a FILETIME structure. The FILETIME structure 25 // these are packed into a FILETIME structure. The FILETIME structure
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 reinterpret_cast<uword>(this)); 911 reinterpret_cast<uword>(this));
911 if (result != 0) { 912 if (result != 0) {
912 FATAL1("Failed to start event handler thread %d", result); 913 FATAL1("Failed to start event handler thread %d", result);
913 } 914 }
914 915
915 // Initialize Winsock32 916 // Initialize Winsock32
916 if (!Socket::Initialize()) { 917 if (!Socket::Initialize()) {
917 FATAL("Failed to initialized Windows sockets"); 918 FATAL("Failed to initialized Windows sockets");
918 } 919 }
919 } 920 }
OLDNEW
« no previous file with comments | « runtime/bin/eventhandler_macos.cc ('k') | runtime/bin/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698