File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,8 @@ context_event_name(PyContextEvent event) {
112
112
Py_UNREACHABLE ();
113
113
}
114
114
115
- static void notify_context_watchers (PyContextEvent event , PyContext * ctx , PyThreadState * ts )
115
+ static void
116
+ notify_context_watchers (PyThreadState * ts , PyContextEvent event , PyContext * ctx )
116
117
{
117
118
assert (Py_REFCNT (ctx ) > 0 );
118
119
PyInterpreterState * interp = ts -> interp ;
@@ -195,7 +196,7 @@ _PyContext_Enter(PyThreadState *ts, PyObject *octx)
195
196
ts -> context = Py_NewRef (ctx );
196
197
ts -> context_ver ++ ;
197
198
198
- notify_context_watchers (Py_CONTEXT_EVENT_ENTER , ctx , ts );
199
+ notify_context_watchers (ts , Py_CONTEXT_EVENT_ENTER , ctx );
199
200
return 0 ;
200
201
}
201
202
@@ -229,7 +230,7 @@ _PyContext_Exit(PyThreadState *ts, PyObject *octx)
229
230
return -1 ;
230
231
}
231
232
232
- notify_context_watchers (Py_CONTEXT_EVENT_EXIT , ctx , ts );
233
+ notify_context_watchers (ts , Py_CONTEXT_EVENT_EXIT , ctx );
233
234
Py_SETREF (ts -> context , (PyObject * )ctx -> ctx_prev );
234
235
ts -> context_ver ++ ;
235
236
You can’t perform that action at this time.
0 commit comments