I am currently trying to port Threading Building Blocks Version 4.0 Update 3to VxWorks 6.9.1 using the GNU toolchain (gcc version 4.3.3)for a Sandybridge target. At this point I am able to build libtbb_debug.so and libtbbmalloc_debug.so, as well as most of the unit test suite.
I have successfully ran the following unit tests consistently with passing results:
However, when I run test_task.vxe 1:4, the test alwayshangs in the call to TestDispatchLoopResponsiveness in TestMain, specifically in the first call tot.SpawnAndWaitOnParent(). From some cursory debugging, the execute method in the TaskWithChildToSteal object is never getting called by the scheduler, so the main thread just spins waiting on this.
I tried stepping through the parent()->spawn(*this) call, but I don't understand the scheduling code enough to understand what isactuallyhappening.
It seems like this is a simple test case, so the issueis probably fundamental. Any ideas on what could be the issue?
Thanks in advance.