Added: 8 months ago
From: Mr4thdimention
Views: 644
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (6)

Sign In or Sign Up now to post a comment!
  • what version of sfml do you use??

  • @vaualbus The most recent non-beta version. I believe the number was 1.6 can't remember perfectly but unless you want to use sfml for other things, I would recommend looking into boost::thread (or std::thread if you have a C++0X fully supporting compiler).

  • Good video btw

  • Howcome you're not using Boost. It is std::thread of C++0X

  • @1dayitwillmake Yes I'm aware, at the time of the video I am not entirely sure what led me to do sfml except that I had been using it recently. I also wanted to showcase the use of a library, even if I didn't explain it. Anyway it may have been better if I used boost, and I might do another series on boost and make a video for the multithreading there.

  • That's NOT what 'volatile' does. All it does is force the compiler to not cache the value in registers and read the value from memory each time it's accessed. Your counter++ problem could have been solved with atomic operations, mutexes are overkill for it.

    msdn microsoft com/en-us/library/ms683614(v=v­s.85).aspx

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more