I want to exclude main thread. I have a longrunning work that should run independent of main thread. Also, the longrunning work has to work by splitting it multiple tasks. I have tried to create a root task and enqueue it. Afterwards, the root task spawned the child tasks.
longtask *root_task = new(task::allocate_root())longtask();
set_ref_count(m_task_count + 1);