Skip to content

Memory leak fixes + improved TBB support

Compare
Choose a tag to compare
@jrmadsen jrmadsen released this 11 Aug 21:14
· 27 commits to master since this release
4a03063
  • Fixed memory leak issues in VUserTaskQueue
  • removed VTaskGroup
  • merged TaskGroup and TBBTaskGroup
    • TBBTaskGroup is just an alias now
    • TaskGroup will handle determine whether ThreadPool is TBB and submit tasks accordingly
  • use tbb::task_arena in order to enable master/worker paradigm
    • full support for ThreadPool::execute_on_all_threads, ThreadPool::execute_on_specific_threads in TBB mode
  • renamed many functions/fields to "main" instead of "master"
  • VTask no longer holds a pointer to task group
    • this was causing a data-race issue
  • cmake option PTL_USE_LOCKS to enable mutex locking in scheduler instead of lock-free scheme
  • removed unused numActThreads
  • wait() member function for tasks