You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3mp/apps
scrawl 530fb61ad0 Use OpenThreads instead of boost thread
This should allow OpenMW to work better with git versions of openscenegraph. OSG dev version 3.5.5 added the setting of thread affinity for the main thread. The problem is that in the boost/standard threading libraries, the affinity of a thread is inherited by any further threads launched from that thread, leading to these threads always running on the same core as the main thread unless you tell them not to.

With OpenThreads, the default affinity of a thread is none, no matter what parent thread it was launched from.

So, when using custom threading with OSG 3.6+, we have these options:
1. explicitely tell OSG to *not* set the thread affinity
or 2. explicitely set the thread affinity of additional threads created (possible with boost, but not possible with std::thread)
or 3. use OpenThreads
or 4. accept the suboptimal performance of non-OSG threads (in OpenMW's case the sound streaming & video threads) running on the same core as the main thread

This patch opts for 3.)

Reference: http://forum.openscenegraph.org/viewtopic.php?t=16158
8 years ago
..
bsatool Merge branch 'master' of https://github.com/OpenMW/openmw into osg 10 years ago
esmtool Rewrite NAME_T into FIXED_STRING. 9 years ago
essimporter Save scripted animation state (Fixes #1931, #2150, #3393) 9 years ago
launcher Merge branch 'appveyor' of github.com:ace13/openmw into appveyor 9 years ago
mwiniimporter Fix shadowing warnings 8 years ago
niftest Removed now unneeded script 10 years ago
opencs Merge remote-tracking branch 'rcutmore/bug-3277' 8 years ago
openmw Use OpenThreads instead of boost thread 8 years ago
openmw_test_suite Add unit tests for ESM::FIXED_STRING 9 years ago
wizard apps/wizard: (trivial) fix misplaced arguments in installFile for installFiles 8 years ago
doc.hpp