| 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_DARTUTILS_H_ | 5 #ifndef BIN_DARTUTILS_H_ |
| 6 #define BIN_DARTUTILS_H_ | 6 #define BIN_DARTUTILS_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 #include "include/dart_native_api.h" | 9 #include "include/dart_native_api.h" |
| 10 | 10 |
| (...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 } | 573 } |
| 574 | 574 |
| 575 private: | 575 private: |
| 576 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); | 576 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); |
| 577 }; | 577 }; |
| 578 | 578 |
| 579 | 579 |
| 580 class ScopedBlockingCall { | 580 class ScopedBlockingCall { |
| 581 public: | 581 public: |
| 582 ScopedBlockingCall() { | 582 ScopedBlockingCall() { |
| 583 Dart_IsolateBlocked(); | 583 Dart_ThreadBlocked(); |
| 584 } | 584 } |
| 585 | 585 |
| 586 ~ScopedBlockingCall() { | 586 ~ScopedBlockingCall() { |
| 587 Dart_IsolateUnblocked(); | 587 Dart_ThreadUnblocked(); |
| 588 } | 588 } |
| 589 }; | 589 }; |
| 590 | 590 |
| 591 } // namespace bin | 591 } // namespace bin |
| 592 } // namespace dart | 592 } // namespace dart |
| 593 | 593 |
| 594 #endif // BIN_DARTUTILS_H_ | 594 #endif // BIN_DARTUTILS_H_ |
| OLD | NEW |