MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / wt_thd_destroy

Function wt_thd_destroy

mysys/waiting_threads.c:632–644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630}
631
632void wt_thd_destroy(WT_THD *thd)
633{
634 DBUG_ENTER("wt_thd_destroy");
635
636 DBUG_ASSERT(thd->my_resources.elements == 0);
637 DBUG_ASSERT(thd->waiting_for == 0);
638
639 if (thd->pins != 0)
640 lf_hash_put_pins(thd->pins);
641
642 delete_dynamic(&thd->my_resources);
643 DBUG_VOID_RETURN;
644}
645/**
646 Trivial resource id comparison function - bytewise memcmp.
647

Callers

nothing calls this directly

Calls 1

delete_dynamicFunction · 0.85

Tested by

no test coverage detected