Commit f64aa03
committed
MEDIUM: proxy: add lock for global accesses during default free
This patch is similar to the previous one, but this time it deals with
functions related to defaults proxies instances. Lock PROXIES_DEL_LOCK
is used to protect accesses on global collections.
This patch will be necessary to implement dynamic backend deletion, even
if defaults won't be use as direct target of a "del backend" CLI.
However, a backend may have a reference on a default instance. When the
backend is freed, this references is released, which can in turn cause
the freeing of the default proxy instance. All of this will occur at
runtime, outside of thread isolation.1 parent f58b269 commit f64aa03
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2980 | 2980 | | |
2981 | 2981 | | |
2982 | 2982 | | |
| 2983 | + | |
| 2984 | + | |
2983 | 2985 | | |
2984 | 2986 | | |
2985 | 2987 | | |
2986 | 2988 | | |
2987 | 2989 | | |
2988 | 2990 | | |
| 2991 | + | |
2989 | 2992 | | |
2990 | 2993 | | |
| 2994 | + | |
2991 | 2995 | | |
2992 | 2996 | | |
2993 | 2997 | | |
2994 | 2998 | | |
2995 | 2999 | | |
2996 | 3000 | | |
2997 | 3001 | | |
| 3002 | + | |
| 3003 | + | |
2998 | 3004 | | |
2999 | 3005 | | |
3000 | 3006 | | |
| |||
3011 | 3017 | | |
3012 | 3018 | | |
3013 | 3019 | | |
| 3020 | + | |
| 3021 | + | |
3014 | 3022 | | |
3015 | 3023 | | |
3016 | 3024 | | |
| |||
3021 | 3029 | | |
3022 | 3030 | | |
3023 | 3031 | | |
3024 | | - | |
| 3032 | + | |
| 3033 | + | |
| 3034 | + | |
| 3035 | + | |
3025 | 3036 | | |
3026 | 3037 | | |
3027 | 3038 | | |
| |||
3033 | 3044 | | |
3034 | 3045 | | |
3035 | 3046 | | |
3036 | | - | |
| 3047 | + | |
| 3048 | + | |
| 3049 | + | |
| 3050 | + | |
| 3051 | + | |
3037 | 3052 | | |
3038 | 3053 | | |
3039 | 3054 | | |
| |||
0 commit comments