chaosfire / vdrift-ogre

Automatically exported from code.google.com/p/vdrift-ogre
0 stars 0 forks source link

Cross-platform threading #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Threading should be cross-platform and not use WinAPI.

This issue is for deciding the library to use and to coordinate implementation.

Possibilities I see:
1. Boost_thread
Pros: Good
Cons: New dependency (though boost is rather useful dependency that could 
potentially be used for other things also, and rather "easy" (readily available 
on all linux distributions and easy to compile on Windows)

2. SDL_Threads
Pros: Already a dependency
Cons: Boost_threads is better, but this would work fine also

3. Is there thread stuff in Ogre?

I'm not a huge fan of adding dependencies, but Boost is rather useful after 
all. Add your opinion.

Original issue reported on code.google.com by tapiovie...@gmail.com on 21 Mar 2011 at 10:42

GoogleCodeExporter commented 8 years ago
Ogre uses threads internally, i believe. But it's using boost anyway for that, 
so why not use it. SDL_thread is in C so its ugly :)

Original comment by scrawl...@gmail.com on 21 Mar 2011 at 12:42

GoogleCodeExporter commented 8 years ago
Fair enough. I'll mark this as started (since first commit is already in) and 
assign you as owner to counter duplicate efforts. Feel free to unassign if you 
can't continue.

Original comment by tapiovie...@gmail.com on 21 Mar 2011 at 12:48

GoogleCodeExporter commented 8 years ago
Experimental boost threads have been added to editor and game (when multthr>0)

Original comment by scrawl...@gmail.com on 21 Mar 2011 at 6:34

GoogleCodeExporter commented 8 years ago

Original comment by scrawl...@gmail.com on 21 Mar 2011 at 8:18

GoogleCodeExporter commented 8 years ago
I'll mark this as solved, the outstanding issue (game multithreading) is 
another story.

Original comment by scrawl...@gmail.com on 24 Mar 2011 at 6:06

GoogleCodeExporter commented 8 years ago

Original comment by scrawl...@gmail.com on 27 Mar 2011 at 10:43