Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualBitMaster

Posted 04 February 2014 - 03:00 AM

Well, the problem with std::threads is that they are really not very well supported (at least on Windows).

You can pick MSVC (in which case you have std::thread, but miss out on quite a few other things normally included in C++11).

You can alternatively pick MinGW. The 'default' MinGW does not include std::thread and has no plans to support them in the foreseeable future. The alternative is a perfectly fine replacement but they also don't have the most performant implementation right now (pthread vs native constructs).

Of course, there are boost::threads which should be pretty much identical to the std version but work fine on every platform.

Edit: as to the original question: personally, I would either use either std::thread or boost::thread. I would not consider using SFML threads.

Edit 2: never mind, conflated a few threads in my head and should have skimmed it again before adding that.

#3BitMaster

Posted 04 February 2014 - 02:59 AM

Well, the problem with std::threads is that they are really not very well supported (at least on Windows).

You can pick MSVC (in which case you have std::thread, but miss out on quite a few other things normally included in C++11).

You can alternatively pick MinGW. The 'default' MinGW does not include std::thread and has no plans to support them in the foreseeable future. The alternative is a perfectly fine replacement but they also don't have the most performant implementation right now (pthread vs native constructs).

Of course, there are boost::threads which should be pretty much identical to the std version but work fine on every platform.

Edit: as to the original question: personally, I would either use either std::thread or boost::thread. I would not consider using SFML threads.

#2BitMaster

Posted 03 February 2014 - 09:52 AM

Well, the problem with std::threads is that they are really not very well supported (at least on Windows).

You can pick MSVC (in which case you have std::thread, but miss out on quite a few other things normally included in C++11).

You can alternatively pick MinGW. The 'default' MinGW does not include std::thread and has no plans to support them in the foreseeable future. The alternative is a perfectly fine replacement but they also don't have the most performant implementation right now (pthread vs native constructs).

Of course, there are boost::threads which should be pretty much identical to the std version but work fine on every platform.

Edit: as to the original question: personally, I would either use either std::thread or boost::thread. I would not consider using SFML threads.

#1BitMaster

Posted 03 February 2014 - 09:51 AM

Well, the problem with std::threads is that they are really not very well supported (at least on Windows).

You can pick MSVC (in which case you have std::thread, but miss out on quite a few other things normally included in C++11).

You can alternatively pick MinGW. The 'default' MinGW does not include std::thread and has no plans to support them in the foreseeable future. The alternative is a perfectly fine replacement but they also don't have the most performant implementation right now (pthread vs native constructs).

Of course, there are boost::threads which should be pretty much identical to the std version but work fine on every platform.

PARTNERS