| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 79b3423 commit 4757771
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -141,6 +141,7 @@ void NodePlatform::RegisterIsolate(IsolateData* isolate_data, uv_loop_t* loop) { | |||
| 141 | 141 | Mutex::ScopedLock lock(per_isolate_mutex_); | |
| 142 | 142 | std::shared_ptr<PerIsolatePlatformData> existing = per_isolate_[isolate]; | |
| 143 | 143 | if (existing) { | |
| 144 | + CHECK_EQ(loop, existing->event_loop()); | ||
| 144 | 145 | existing->ref(); | |
| 145 | 146 | } else { | |
| 146 | 147 | per_isolate_[isolate] = | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -72,6 +72,8 @@ class PerIsolatePlatformData : | |||
| 72 | 72 | bool FlushForegroundTasksInternal(); | |
| 73 | 73 | void CancelPendingDelayedTasks(); | |
| 74 | 74 | ||
| 75 | + const uv_loop_t* event_loop() const { return loop_; } | ||
| 76 | + | ||
| 75 | 77 | private: | |
| 76 | 78 | void DeleteFromScheduledTasks(DelayedTask* task); | |
| 77 | 79 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments