We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d407ad9 commit c750d92Copy full SHA for c750d92
1 file changed
Modules/_threadmodule.c
@@ -950,8 +950,8 @@ lock_new_impl(PyTypeObject *type)
950
if (self == NULL) {
951
return NULL;
952
}
953
- _PyObject_SetDeferredRefcount((PyObject *)self);
954
self->lock = (PyMutex){0};
+ _PyObject_SetDeferredRefcount((PyObject *)self);
955
return (PyObject *)self;
956
957
@@ -1222,8 +1222,8 @@ rlock_new_impl(PyTypeObject *type)
1222
1223
1224
1225
1226
self->lock = (_PyRecursiveMutex){0};
1227
return (PyObject *) self;
1228
1229
0 commit comments