| Thread Tools | Search this thread |
|---|
gravyjones
| July 5, 2009 8:48 AM PDT multimedia timers / task_group_context | ||||
I have an interesting problem. My application uses multimedia timers to process video from hardware devices as well as the display. The structure of the code to support a multimedia timer requires a static callback procedure, as a hook in point, to the system generated multimedia timer. In my situation this is simply the static function in my class. I make sure to initialize the timer with "this" as the user defined data. The timer is called in the context of the multimedia timer thread, and my code will reconstruct "this" as a back pointer to the original instance of the class that caused the timer to be used. During the callback, when I use parallel_reduce, TBB complains about an initialization problem. Basically, If I understand the docs correctly, this situation constitutes an isolated task, where the parent has no knowledge of TBB. I would like to know how to use parallel_reduce in combination with an isolated task. It seems like I have no chance of getting to initialize TBB in the multimedia timer. Thanks! The specific error is --------------------------- Microsoft Visual C++ Debug Library --------------------------- Debug Assertion Failed! Program: ... Module: tbb_debug.dll File: ../../src/tbb/task.cpp Line: 3113 Expression: my_owner Thread has not activated a task_scheduler_init object? For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts. (Press Retry to debug the application) --------------------------- Abort Retry Ignore --------------------------- | |||||
|
|||||||||||||
|
|||||||||||||
| 8285 users have contributed to 31229 threads and 99106 posts to date. |
|---|
| In the past 24 hours, we have 13 new thread(s) 50 new posts(s), and 68 new user(s). In the past 3 days, the most popular thread for everyone has been comparison cilk++, openmp, pthreads first results The most posts were made to comparison cilk++, openmp, pthreads first results The post with the most views is Very amusing... Escalated as Please welcome our newest member tvinni |