Commit e809a5c
committed
src: associate is_main_thread() with worker_context()
In our codebase, the assumption generally is that `!is_main_thread()`
means that the current Environment belongs to a Node.js Worker thread.
Backport-PR-URL: #35241
PR-URL: #30467
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>1 parent b7350e8 commit e809a5cCopy full SHA for e809a5c
File tree
Expand file treeCollapse file tree
4 files changed
+3
-6
lines changedOpen diff view settings
Filter options
- src
- api
Expand file treeCollapse file tree
4 files changed
+3
-6
lines changedOpen diff view settings
Collapse file
+1-2Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
332 | 332 | |
333 | 333 | |
334 | 334 | |
335 | | - |
336 | | - |
| 335 | + |
337 | 336 | |
338 | 337 | |
339 | 338 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
854 | 854 | |
855 | 855 | |
856 | 856 | |
857 | | - |
| 857 | + |
858 | 858 | |
859 | 859 | |
860 | 860 | |
|
Collapse file
-1Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
876 | 876 | |
877 | 877 | |
878 | 878 | |
879 | | - |
880 | 879 | |
881 | 880 | |
882 | 881 | |
|
Collapse file
+1-2Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
204 | 204 | |
205 | 205 | |
206 | 206 | |
207 | | - |
208 | | - |
| 207 | + |
209 | 208 | |
210 | 209 | |
211 | 210 | |
|
0 commit comments