I get this strage error when I try to execute a parallel_for from a worker thread. And yes I didcall task_scheduler_init, but from the main thread.
The error is an assertion:
Thread has not activated a task_scheduler_init object?
the assertion is thrown at
task_group_context ( kind_type relation_with_parent = bound )