sanity checking
https://zh.wikipedia.org/wiki/健全性测试
Modules\_threadmodule.c
/* Lock objects */ typedef struct { PyObject_HEAD PyThread_type_lock lock_lock; PyObject *in_weakreflist; char locked; /* for sanity checking */ } lockobject;
https://zh.wikipedia.org/wiki/健全性测试
Modules\_threadmodule.c
/* Lock objects */ typedef struct { PyObject_HEAD PyThread_type_lock lock_lock; PyObject *in_weakreflist; char locked; /* for sanity checking */ } lockobject;