Is there a way to wait until all tasks associated with a givenschedulerare complete? My app is currently crashing on shutdown because I am unloading DLL's which TBB tasks are actively using. I tried calling terminate() on mytbb::task_scheduler_init object prior to unloading these DLL's but this doesn't seem to help. Putting in a Sleep(500) does fix the problem, but it is just a dirty hack. Thanks
For more complete information about compiler optimizations, see our Optimization Notice.