Bullet Collision Detection & Physics Library
|
The SequentialThreadSupport is a portable non-parallel implementation of the btThreadSupportInterface This is useful for debugging and porting SPU Tasks to other platforms. More...
#include <SequentialThreadSupport.h>
Classes | |
struct | btSpuStatus |
struct | SequentialThreadConstructionInfo |
Public Member Functions | |
SequentialThreadSupport (SequentialThreadConstructionInfo &threadConstructionInfo) | |
virtual | ~SequentialThreadSupport () |
cleanup/shutdown Libspe2 More... | |
void | startThreads (SequentialThreadConstructionInfo &threadInfo) |
virtual void | sendRequest (uint32_t uiCommand, ppu_address_t uiArgument0, uint32_t uiArgument1) |
send messages to SPUs More... | |
virtual void | waitForResponse (unsigned int *puiArgument0, unsigned int *puiArgument1) |
check for messages from SPUs More... | |
virtual void | startSPU () |
start the spus (can be called at the beginning of each frame, to make sure that the right SPU program is loaded) More... | |
virtual void | stopSPU () |
tell the task scheduler we are done with the SPU tasks More... | |
virtual void | setNumTasks (int numTasks) |
tell the task scheduler to use no more than numTasks tasks More... | |
virtual int | getNumTasks () const |
virtual btBarrier * | createBarrier () |
virtual btCriticalSection * | createCriticalSection () |
virtual void | deleteBarrier (btBarrier *barrier) |
virtual void | deleteCriticalSection (btCriticalSection *criticalSection) |
Public Member Functions inherited from btThreadSupportInterface | |
virtual | ~btThreadSupportInterface () |
virtual void * | getThreadLocalMemory (int taskId) |
Private Attributes | |
btAlignedObjectArray< btSpuStatus > | m_activeSpuStatus |
btAlignedObjectArray< void * > | m_completeHandles |
The SequentialThreadSupport is a portable non-parallel implementation of the btThreadSupportInterface This is useful for debugging and porting SPU Tasks to other platforms.
Definition at line 34 of file SequentialThreadSupport.h.
SequentialThreadSupport::SequentialThreadSupport | ( | SequentialThreadConstructionInfo & | threadConstructionInfo | ) |
Definition at line 22 of file SequentialThreadSupport.cpp.
|
virtual |
cleanup/shutdown Libspe2
Definition at line 28 of file SequentialThreadSupport.cpp.
|
virtual |
Implements btThreadSupportInterface.
Definition at line 157 of file SequentialThreadSupport.cpp.
|
virtual |
Implements btThreadSupportInterface.
Definition at line 162 of file SequentialThreadSupport.cpp.
|
virtual |
Implements btThreadSupportInterface.
Definition at line 168 of file SequentialThreadSupport.cpp.
|
virtual |
Implements btThreadSupportInterface.
Definition at line 173 of file SequentialThreadSupport.cpp.
|
inlinevirtual |
Implements btThreadSupportInterface.
Definition at line 84 of file SequentialThreadSupport.h.
|
virtual |
send messages to SPUs
not implemented
Implements btThreadSupportInterface.
Definition at line 36 of file SequentialThreadSupport.cpp.
|
virtual |
tell the task scheduler to use no more than numTasks tasks
Implements btThreadSupportInterface.
Definition at line 90 of file SequentialThreadSupport.cpp.
|
virtual |
start the spus (can be called at the beginning of each frame, to make sure that the right SPU program is loaded)
Implements btThreadSupportInterface.
Definition at line 81 of file SequentialThreadSupport.cpp.
void SequentialThreadSupport::startThreads | ( | SequentialThreadConstructionInfo & | threadInfo | ) |
Definition at line 67 of file SequentialThreadSupport.cpp.
|
virtual |
tell the task scheduler we are done with the SPU tasks
Implements btThreadSupportInterface.
Definition at line 85 of file SequentialThreadSupport.cpp.
|
virtual |
check for messages from SPUs
Implements btThreadSupportInterface.
Definition at line 59 of file SequentialThreadSupport.cpp.
|
private |
Definition at line 49 of file SequentialThreadSupport.h.
|
private |
Definition at line 50 of file SequentialThreadSupport.h.