SFML community forums

General => General discussions => Topic started by: Klaim on July 25, 2011, 01:40:38 pm

Title: Worker thread pool and task scheduling in SFML 2.0
Post by: Klaim on July 25, 2011, 01:40:38 pm
For learning purpose, I'm planning to write a more complete variant of this game (made with SFML but incomplete) (http://code.google.com/p/radiant-laser-cross/) but in a fully parallellized way.

At the moment I think I'll use Inter Threading Building Blocks to make sure everything is portable, with SFML of course.

Now, as SFML provide thread interfaces, I was asking myself if you would go as far as to provide a basic implementation of task scheduling in the future?

As SFML don't provide it yet, I'm still wanting to use TBB but maybe I missed something?
Title: Worker thread pool and task scheduling in SFML 2.0
Post by: Laurent on July 25, 2011, 01:46:24 pm
SFML is not a threading library, it provides only the minimum features that it internally needs -- threads, mutex and nothing more ;)
Title: Worker thread pool and task scheduling in SFML 2.0
Post by: Klaim on July 25, 2011, 02:21:17 pm
So my guess is right that you'll certainly never support more higher abstractions.

It seem reasonable to me, so I guess ITBB is really my only option.

Thanks!