Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Threading primitives  (Read 20790 times)

0 Members and 1 Guest are viewing this topic.

Hoff

  • Newbie
  • *
  • Posts: 6
    • View Profile
Threading primitives
« on: January 18, 2009, 07:22:27 am »
It would be nice to have an "Event" threading primitive in addition to Mutex and Lock. Without something like Event it's hard to efficiently implement a producer/consumer queue and several other nice things.

-- John

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Threading primitives
« Reply #1 on: January 18, 2009, 01:05:32 pm »
Well, if you need such advanced threading primitives you can use a more complex library, like boost.thread.
Laurent Gomila - SFML developer

Hoff

  • Newbie
  • *
  • Posts: 6
    • View Profile
Threading primitives
« Reply #2 on: January 19, 2009, 07:43:45 pm »
Yeah, okay. I just figured with Thread and Mutex we're already 90% of the way there.