MCPcopy Create free account
hub / github.com/F-Stack/f-stack / AddSubThread

Method AddSubThread

adapter/micro_thread/micro_thread.cpp:264–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264void MicroThread::AddSubThread(MicroThread* sub)
265{
266 ASSERT(!sub->HasFlag(MicroThread::SUB_LIST));
267 if (!sub->HasFlag(MicroThread::SUB_LIST))
268 {
269 TAILQ_INSERT_TAIL(&_sub_list, sub, _sub_entry);
270 sub->_parent = this;
271 }
272
273 sub->SetFlag(MicroThread::SUB_LIST);
274}
275
276void MicroThread::RemoveSubThread(MicroThread* sub)
277{

Callers 1

mt_exec_all_taskFunction · 0.80

Calls 2

HasFlagMethod · 0.80
SetFlagMethod · 0.80

Tested by

no test coverage detected