I would like to start using TBB with a cross platform applicationthat iscurrently supported on windows, linux, mac, irix, hpux, and solaris. I am trying to determine the best way of doing this. I see several options:
- use #ifdefs to only use TBB on supported platforms
- port TBB to the unsupported platforms
- port TBB to use Qt threads (since the application uses Qt)
- create a threadless version of TBB for the unsupported platforms (e.g., parallel_for on an unsupported platform would be an inline call to Body::operator() with the entire range)
Please comment on these ideas, or any other ideas you may have.