WT_RESOURCE destructor It's called from lf_hash and takes a pointer to an LF_SLIST instance. WT_RESOURCE is located at arg+sizeof(LF_SLIST) */
| 513 | WT_RESOURCE is located at arg+sizeof(LF_SLIST) |
| 514 | */ |
| 515 | static void wt_resource_destroy(uchar *arg) |
| 516 | { |
| 517 | WT_RESOURCE *rc= (WT_RESOURCE*)(arg+LF_HASH_OVERHEAD); |
| 518 | DBUG_ENTER("wt_resource_destroy"); |
| 519 | |
| 520 | DBUG_ASSERT(rc->owners.elements == 0); |
| 521 | rc_rwlock_destroy(rc); |
| 522 | mysql_cond_destroy(&rc->cond); |
| 523 | delete_dynamic(&rc->owners); |
| 524 | DBUG_VOID_RETURN; |
| 525 | } |
| 526 | |
| 527 | void wt_init() |
| 528 | { |
nothing calls this directly
no test coverage detected