| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -133,12 +133,14 @@ static void destroy_gil(struct _gil_runtime_state *gil) | |||
| 133 | 133 | _Py_ANNOTATE_RWLOCK_DESTROY(&gil->locked); | |
| 134 | 134 | } | |
| 135 | 135 | ||
| 136 | + #ifdef HAVE_FORK | ||
| 136 | 137 | static void recreate_gil(struct _gil_runtime_state *gil) | |
| 137 | 138 | { | |
| 138 | 139 | _Py_ANNOTATE_RWLOCK_DESTROY(&gil->locked); | |
| 139 | 140 | /* XXX should we destroy the old OS resources here? */ | |
| 140 | 141 | create_gil(gil); | |
| 141 | 142 | } | |
| 143 | + #endif | ||
| 142 | 144 | ||
| 143 | 145 | static void | |
| 144 | 146 | drop_gil(struct _ceval_runtime_state *ceval, struct _ceval_state *ceval2, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments