Commit 561b81f
core: registry: Factor out "wait till out of work" part of the main loop.
This was originally done for rayon-rs#1063, in order to reuse this to allow
cleaning up the TLS data allocated by use_current_thread.
We ended up not using that, but this refactoring seems useful on its
own.
(cherry picked from commit ea0c06d)1 parent 7e35a4d commit 561b81f
1 file changed
+16
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
851 | 851 | | |
852 | 852 | | |
853 | 853 | | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
854 | 869 | | |
855 | 870 | | |
856 | 871 | | |
| |||
947 | 962 | | |
948 | 963 | | |
949 | 964 | | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | | - | |
957 | | - | |
958 | | - | |
| 965 | + | |
959 | 966 | | |
960 | 967 | | |
961 | 968 | | |
| |||
0 commit comments