add 033-cherry_pick_98c40a4bae915

This commit is contained in:
Shelley Vohr 2017-12-21 19:45:02 -05:00 коммит произвёл Aleksei Kuzmin
Родитель 14fba156b4
Коммит 8418fb97e7
1 изменённых файлов: 22 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,22 @@
diff --git a/include/v8-platform.h b/include/v8-platform.h
index b1a57c9e2c..6c3c4292c5 100644
--- a/include/v8-platform.h
+++ b/include/v8-platform.h
@@ -199,7 +199,7 @@ class Platform {
* Returns a TaskRunner which can be used to post a task on the foreground.
* This function should only be called from a foreground thread.
*/
- virtual std::unique_ptr<v8::TaskRunner> GetForegroundTaskRunner(
+ virtual std::shared_ptr<v8::TaskRunner> GetForegroundTaskRunner(
Isolate* isolate) {
// TODO(ahaas): Make this function abstract after it got implemented on all
// platforms.
@@ -210,7 +210,7 @@ class Platform {
* Returns a TaskRunner which can be used to post a task on a background.
* This function should only be called from a foreground thread.
*/
- virtual std::unique_ptr<v8::TaskRunner> GetBackgroundTaskRunner(
+ virtual std::shared_ptr<v8::TaskRunner> GetBackgroundTaskRunner(
Isolate* isolate) {
// TODO(ahaas): Make this function abstract after it got implemented on all
// platforms.