MCPcopy Create free account
hub / github.com/apache/brpc / ~TaskGroup

Method ~TaskGroup

src/bthread/task_group.cpp:235–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235TaskGroup::~TaskGroup() {
236 if (_main_tid) {
237 TaskMeta* m = address_meta(_main_tid);
238 CHECK(_main_stack == m->stack);
239#ifdef BUTIL_USE_ASAN
240 _main_stack->storage.bottom = NULL;
241 _main_stack->storage.stacksize = 0;
242#endif // BUTIL_USE_ASAN
243 return_stack(m->release_stack());
244 return_resource(get_slot(_main_tid));
245 _main_tid = 0;
246 }
247}
248
249#ifdef BUTIL_USE_ASAN
250// Returns the **highest** address of the calling pthread's stack and its

Callers

nothing calls this directly

Calls 4

return_stackFunction · 0.85
release_stackMethod · 0.80
get_slotFunction · 0.70
return_resourceFunction · 0.50

Tested by

no test coverage detected