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 e4f6445 commit f11ec6eCopy full SHA for f11ec6e
Modules/_testinternalcapi/test_lock.c
@@ -91,7 +91,8 @@ test_lock_two_threads(PyObject *self, PyObject *obj)
91
} while (v != 3 && iters < 200);
92
93
// both the "locked" and the "has parked" bits should be set
94
- assert(test_data.m._bits == 3);
+ v = _Py_atomic_load_uint8_relaxed(&test_data.m._bits);
95
+ assert(v == 3);
96
97
PyMutex_Unlock(&test_data.m);
98
PyEvent_Wait(&test_data.done);
0 commit comments