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

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

Issue 471743002: - Make sure that the threads for dart::bin are in the correct namespace. (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
« no previous file with comments | « runtime/bin/eventhandler_macos.cc ('k') | runtime/bin/eventhandler_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_EVENTHANDLER_WIN_H_ 5 #ifndef BIN_EVENTHANDLER_WIN_H_
6 #define BIN_EVENTHANDLER_WIN_H_ 6 #define BIN_EVENTHANDLER_WIN_H_
7 7
8 #if !defined(BIN_EVENTHANDLER_H_) 8 #if !defined(BIN_EVENTHANDLER_H_)
9 #error Do not include eventhandler_win.h directly; use eventhandler.h instead. 9 #error Do not include eventhandler_win.h directly; use eventhandler.h instead.
10 #endif 10 #endif
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 virtual void DoClose(); 328 virtual void DoClose();
329 virtual intptr_t Write(const void* buffer, intptr_t num_bytes); 329 virtual intptr_t Write(const void* buffer, intptr_t num_bytes);
330 330
331 void WriteSyncCompleteAsync(); 331 void WriteSyncCompleteAsync();
332 void RunWriteLoop(); 332 void RunWriteLoop();
333 333
334 private: 334 private:
335 DWORD thread_wrote_; 335 DWORD thread_wrote_;
336 bool write_thread_exists_; 336 bool write_thread_exists_;
337 bool write_thread_running_; 337 bool write_thread_running_;
338 dart::Monitor* write_monitor_; 338 Monitor* write_monitor_;
339 }; 339 };
340 340
341 341
342 class DirectoryWatchHandle : public Handle { 342 class DirectoryWatchHandle : public Handle {
343 public: 343 public:
344 DirectoryWatchHandle(HANDLE handle, int events, bool recursive) 344 DirectoryWatchHandle(HANDLE handle, int events, bool recursive)
345 : Handle(handle), 345 : Handle(handle),
346 events_(events), 346 events_(events),
347 recursive_(recursive) { 347 recursive_(recursive) {
348 type_ = kDirectoryWatch; 348 type_ = kDirectoryWatch;
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 541
542 TimeoutQueue timeout_queue_; // Time for next timeout. 542 TimeoutQueue timeout_queue_; // Time for next timeout.
543 bool shutdown_; 543 bool shutdown_;
544 HANDLE completion_port_; 544 HANDLE completion_port_;
545 }; 545 };
546 546
547 } // namespace bin 547 } // namespace bin
548 } // namespace dart 548 } // namespace dart
549 549
550 #endif // BIN_EVENTHANDLER_WIN_H_ 550 #endif // BIN_EVENTHANDLER_WIN_H_
OLDNEW
« no previous file with comments | « runtime/bin/eventhandler_macos.cc ('k') | runtime/bin/eventhandler_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698