added MultiThreadedDemo
This commit is contained in:
@@ -171,14 +171,9 @@ struct CollisionTask_LocalStoreMemory
|
||||
|
||||
|
||||
|
||||
#ifdef WIN32
|
||||
void* createCollisionLocalStoreMemory()
|
||||
{
|
||||
return new CollisionTask_LocalStoreMemory;
|
||||
};
|
||||
|
||||
|
||||
#elif defined(__CELLOS_LV2__) || defined(USE_LIBSPE2)
|
||||
#if defined(__CELLOS_LV2__) || defined(USE_LIBSPE2)
|
||||
|
||||
ATTRIBUTE_ALIGNED16(CollisionTask_LocalStoreMemory gLocalStoreMemory);
|
||||
|
||||
@@ -186,6 +181,12 @@ void* createCollisionLocalStoreMemory()
|
||||
{
|
||||
return &gLocalStoreMemory;
|
||||
}
|
||||
#else
|
||||
void* createCollisionLocalStoreMemory()
|
||||
{
|
||||
return new CollisionTask_LocalStoreMemory;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -55,14 +55,8 @@ struct SolverTask_LocalStoreMemory
|
||||
};
|
||||
|
||||
|
||||
#ifdef WIN32
|
||||
void* createSolverLocalStoreMemory()
|
||||
{
|
||||
return new SolverTask_LocalStoreMemory;
|
||||
};
|
||||
|
||||
|
||||
#elif defined(__CELLOS_LV2__)
|
||||
#if defined(__CELLOS_LV2__) || defined (LIBSPE2)
|
||||
|
||||
ATTRIBUTE_ALIGNED16(SolverTask_LocalStoreMemory gLocalStoreMemory);
|
||||
|
||||
@@ -70,6 +64,12 @@ void* createSolverLocalStoreMemory()
|
||||
{
|
||||
return &gLocalStoreMemory;
|
||||
}
|
||||
#else
|
||||
void* createSolverLocalStoreMemory()
|
||||
{
|
||||
return new SolverTask_LocalStoreMemory;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user