Uh oh!
There was an error while loading. Please reload this page.
Commit f3f51e4
src: use thread_local to declare modpending
The pointer used to hold an incoming dynamically loaded module's
`node::node_module` structure needs to be thread-local. So far this was
done with `uv_key_set()` and `uv_key_get()`. The language now supports
the `thread_local` keyword which makes implementing this a lot cleaner.
PR-URL: #28456
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>1 parent 68ed32f commit f3f51e4
1 file changed
Lines changed: 5 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
247 | | - | |
| 246 | + | |
248 | 247 | | |
249 | 248 | | |
250 | 249 | | |
| |||
262 | 261 | | |
263 | 262 | | |
264 | 263 | | |
265 | | - | |
| 264 | + | |
266 | 265 | | |
267 | 266 | | |
268 | 267 | | |
| |||
406 | 405 | | |
407 | 406 | | |
408 | 407 | | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | 408 | | |
414 | 409 | | |
415 | 410 | | |
| |||
420 | 415 | | |
421 | 416 | | |
422 | 417 | | |
423 | | - | |
424 | | - | |
| 418 | + | |
425 | 419 | | |
426 | 420 | | |
427 | 421 | | |
| |||
452 | 446 | | |
453 | 447 | | |
454 | 448 | | |
455 | | - | |
456 | | - | |
457 | | - | |
| 449 | + | |
| 450 | + | |
458 | 451 | | |
459 | 452 | | |
460 | 453 | | |
| |||
0 commit comments