Changed BulletMultiThreaded Thread Support to be passed in, rather then global 'Win32ThreadSupport'/'Libspe2ThreadSupport' etc.

This allows developer to hookup Bullet to a custom task scheduler, by deriving from btThreadSupportInterface.
This commit is contained in:
ejcoumans
2007-07-09 03:21:33 +00:00
parent 2508cef2cf
commit 121fd7808e
12 changed files with 201 additions and 66 deletions

View File

@@ -14,6 +14,7 @@ subject to the following restrictions:
*/
//#define __CELLOS_LV2__ 1
#ifdef USE_SAMPLE_PROCESS
@@ -56,6 +57,8 @@ CellSPURSSupport gSampleSPU(SPU_ELF_SAMPLE);
#endif
extern "C" {
extern char SPU_SAMPLE_ELF_SYMBOL[];
};
@@ -64,7 +67,7 @@ extern "C" {
SpuSampleTaskDesc g_spuSampleTaskDesc[SAMPLE_NUM_WORKUNIT_TASKS];
//SpuSampleTaskDesc g_spuSampleTaskDesc[SAMPLE_NUM_WORKUNIT_TASKS];
@@ -80,6 +83,8 @@ SpuSampleTaskProcess::SpuSampleTaskProcess()
m_initialized = false;
m_threadInterface->startSPU();
#ifdef WIN32
Win32ThreadSupport::Win32ThreadConstructionInfo threadConstructionInfo(
"sample",SampleThreadFunc,SamplelsMemoryFunc);
@@ -209,3 +214,4 @@ void SpuSampleTaskProcess::flush()
}
#endif //USE_SAMPLE_PROCESS