Robert Hanson wrote:
I’m looking at porting a windows (win32) app to linux. Is there a good reason to consider the boost thread library over the linux thread library? Does boost provide a wrapper for threads, so that I won’t need to change my source code when porting between the two?
YES! It's very good at that! Also support for mutexes, etc. Works on linux/*bsd/MacOSX/Unix/Windows/etc.... Highly recommended for cross-platform thread programming. I consider it more than just a wrapper. It adds functionality such as exception throwing, etc. that isn't available in the raw OS interfaces. Plus it's very well researched, thought-out, documented and has been through the boost review process! Don't try it yourself at home, I think you would not come up with anything better.