| 69 | struct CountersWrapper { |
| 70 | CountersWrapper(Counters* c, bthread_key_t key) : _c(c), _key(key) {} |
| 71 | ~CountersWrapper() { |
| 72 | if (_c) { |
| 73 | _c->ndestroy.fetch_add(1, butil::memory_order_relaxed); |
| 74 | } |
| 75 | CHECK_EQ(0, bthread_key_delete(_key)); |
| 76 | } |
| 77 | private: |
| 78 | Counters* _c; |
| 79 | bthread_key_t _key; |
nothing calls this directly
no test coverage detected