Commit eccbec9
async_wrap: new instances get uid
New instances of AsyncWrap are automatically assigned a unique id. The
value will be used in future commits to communicate additional
information via the async hooks.
While the largest value we can reliably communicate to JS is 2^53, even
if a new AsyncWrap is created every 100ns the uid won't reach its end
for 28.5 years.
PR-URL: #3461
Reviewed-By: Fedor Indutny <fedor@indutny.com>1 parent 5d34c81 commit eccbec9Copy full SHA for eccbec9
File tree
Expand file treeCollapse file tree
4 files changed
+18
-1
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
4 files changed
+18
-1
lines changedOpen diff view settings
Collapse file
+7-1Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17 | 17 | |
18 | 18 | |
19 | 19 | |
20 | | - |
| 20 | + |
| 21 | + |
21 | 22 | |
22 | 23 | |
23 | 24 | |
| ||
66 | 67 | |
67 | 68 | |
68 | 69 | |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
69 | 75 | |
70 | 76 | |
71 | 77 | |
|
Collapse file
+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
55 | 55 | |
56 | 56 | |
57 | 57 | |
| 58 | + |
| 59 | + |
58 | 60 | |
59 | 61 | |
60 | 62 | |
| ||
76 | 78 | |
77 | 79 | |
78 | 80 | |
| 81 | + |
79 | 82 | |
80 | 83 | |
81 | 84 | |
|
Collapse file
+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
210 | 210 | |
211 | 211 | |
212 | 212 | |
| 213 | + |
213 | 214 | |
214 | 215 | |
215 | 216 | |
| ||
359 | 360 | |
360 | 361 | |
361 | 362 | |
| 363 | + |
| 364 | + |
| 365 | + |
| 366 | + |
362 | 367 | |
363 | 368 | |
364 | 369 | |
|
Collapse file
+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
446 | 446 | |
447 | 447 | |
448 | 448 | |
| 449 | + |
| 450 | + |
449 | 451 | |
450 | 452 | |
451 | 453 | |
| ||
541 | 543 | |
542 | 544 | |
543 | 545 | |
| 546 | + |
544 | 547 | |
545 | 548 | |
546 | 549 | |
|
0 commit comments