Commit a89cc28
src: protect global state with mutexes
Protect environment variables and inherently per-process state with
mutexes, to better accommodate Node’s usage in
multi-threading environments.
Thanks to Stephen Belanger for reviewing this change in its original PR.
Refs: ayojs/ayo#82
PR-URL: #20542
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>1 parent 2df99ac commit a89cc28Copy full SHA for a89cc28
File tree
Expand file treeCollapse file tree
3 files changed
+22
-4
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
3 files changed
+22
-4
lines changedOpen diff view settings
Collapse file
+18-4Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
171 | 171 | |
172 | 172 | |
173 | 173 | |
| 174 | + |
| 175 | + |
| 176 | + |
174 | 177 | |
175 | 178 | |
176 | 179 | |
| ||
698 | 701 | |
699 | 702 | |
700 | 703 | |
701 | | - |
702 | | - |
703 | | - |
| 704 | + |
| 705 | + |
| 706 | + |
| 707 | + |
| 708 | + |
| 709 | + |
704 | 710 | |
705 | 711 | |
706 | 712 | |
| ||
1358 | 1364 | |
1359 | 1365 | |
1360 | 1366 | |
| 1367 | + |
1361 | 1368 | |
1362 | 1369 | |
1363 | 1370 | |
| ||
2624 | 2631 | |
2625 | 2632 | |
2626 | 2633 | |
2627 | | - |
2628 | 2634 | |
2629 | 2635 | |
2630 | 2636 | |
| ||
2635 | 2641 | |
2636 | 2642 | |
2637 | 2643 | |
| 2644 | + |
2638 | 2645 | |
2639 | 2646 | |
2640 | 2647 | |
| ||
2675 | 2682 | |
2676 | 2683 | |
2677 | 2684 | |
| 2685 | + |
| 2686 | + |
2678 | 2687 | |
2679 | 2688 | |
2680 | 2689 | |
| ||
2695 | 2704 | |
2696 | 2705 | |
2697 | 2706 | |
| 2707 | + |
2698 | 2708 | |
2699 | 2709 | |
2700 | 2710 | |
| ||
2724 | 2734 | |
2725 | 2735 | |
2726 | 2736 | |
| 2737 | + |
2727 | 2738 | |
2728 | 2739 | |
2729 | 2740 | |
| ||
2749 | 2760 | |
2750 | 2761 | |
2751 | 2762 | |
| 2763 | + |
2752 | 2764 | |
2753 | 2765 | |
2754 | 2766 | |
| ||
2864 | 2876 | |
2865 | 2877 | |
2866 | 2878 | |
| 2879 | + |
2867 | 2880 | |
2868 | 2881 | |
2869 | 2882 | |
| ||
2879 | 2892 | |
2880 | 2893 | |
2881 | 2894 | |
| 2895 | + |
2882 | 2896 | |
2883 | 2897 | |
2884 | 2898 | |
|
Collapse file
+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
715 | 715 | |
716 | 716 | |
717 | 717 | |
| 718 | + |
| 719 | + |
| 720 | + |
718 | 721 | |
719 | 722 | |
720 | 723 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
25 | 25 | |
26 | 26 | |
27 | 27 | |
| 28 | + |
28 | 29 | |
29 | 30 | |
30 | 31 | |
|
0 commit comments