Lines Matching refs:canary
177 ThreadCanaryObj *canary; in thread_canary_register() local
193 canary = PyObject_New(ThreadCanaryObj, &ThreadCanary_Type); in thread_canary_register()
195 if (canary == NULL) in thread_canary_register()
197 canary->zombie_prev = NULL; in thread_canary_register()
198 canary->zombie_next = NULL; in thread_canary_register()
199 canary->tstate = tstate; in thread_canary_register()
200 canary->tls = tls; in thread_canary_register()
202 err = PyDict_SetItemString(tdict, "cffi.thread.canary", (PyObject *)canary); in thread_canary_register()
203 Py_DECREF(canary); in thread_canary_register()
211 assert(Py_REFCNT(canary) == 1); in thread_canary_register()
212 tls->local_thread_canary = canary; in thread_canary_register()