| Thread Tools | Search this thread |
|---|
tommy_developer
| July 6, 2009 1:54 AM PDT Memory leak from TBB when did nothing but only new/delete a task_scheduler_init. | ||||
The following sample code will cause memory leaks: // // create a new TBB task scheduler, the leaked bytes varies with the number of threads !! // tbb::task_scheduler_init *pScheduler = new tbb::task_scheduler_init(4); // // do nothing // // // terminate the scheduler // pScheduler->terminate(); // // delete the pointer // delete pScheduler; If the parameter is 1, then no leaks. Will TBB deal with this situation in the future ? | |||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
| 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 |