GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: add consistency check to node_platform.cc · nodejs/node@4757771

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node_platform.cc
    • node_platform.h
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node_platform.cc‎

Copy file name to clipboardExpand all lines: src/node_platform.cc
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ void NodePlatform::RegisterIsolate(IsolateData* isolate_data, uv_loop_t* loop) {
141141
Mutex::ScopedLock lock(per_isolate_mutex_);
142142
std::shared_ptr<PerIsolatePlatformData> existing = per_isolate_[isolate];
143143
if (existing) {
144+
CHECK_EQ(loop, existing->event_loop());
144145
existing->ref();
145146
} else {
146147
per_isolate_[isolate] =
Collapse file

‎src/node_platform.h‎

Copy file name to clipboardExpand all lines: src/node_platform.h
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ class PerIsolatePlatformData :
7272
bool FlushForegroundTasksInternal();
7373
void CancelPendingDelayedTasks();
7474

75+
const uv_loop_t* event_loop() const { return loop_; }
76+
7577
private:
7678
void DeleteFromScheduledTasks(DelayedTask* task);
7779

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.