OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |