Bullet Collision Detection & Physics Library
|
#include <btThreadSupportInterface.h>
Public Member Functions | |
virtual | ~btThreadSupportInterface () |
virtual void | sendRequest (uint32_t uiCommand, ppu_address_t uiArgument0, uint32_t uiArgument1)=0 |
send messages to SPUs More... | |
virtual void | waitForResponse (unsigned int *puiArgument0, unsigned int *puiArgument1)=0 |
check for messages from SPUs More... | |
virtual void | startSPU ()=0 |
non-blocking test if a task is completed. More... | |
virtual void | stopSPU ()=0 |
tell the task scheduler we are done with the SPU tasks More... | |
virtual void | setNumTasks (int numTasks)=0 |
tell the task scheduler to use no more than numTasks tasks More... | |
virtual int | getNumTasks () const =0 |
virtual btBarrier * | createBarrier ()=0 |
virtual btCriticalSection * | createCriticalSection ()=0 |
virtual void | deleteBarrier (btBarrier *barrier)=0 |
virtual void | deleteCriticalSection (btCriticalSection *criticalSection)=0 |
virtual void * | getThreadLocalMemory (int taskId) |
Definition at line 49 of file btThreadSupportInterface.h.
|
virtual |
Definition at line 18 of file btThreadSupportInterface.cpp.
|
pure virtual |
Implemented in Win32ThreadSupport, PosixThreadSupport, and SequentialThreadSupport.
|
pure virtual |
Implemented in Win32ThreadSupport, PosixThreadSupport, and SequentialThreadSupport.
|
pure virtual |
Implemented in Win32ThreadSupport, PosixThreadSupport, and SequentialThreadSupport.
|
pure virtual |
Implemented in Win32ThreadSupport, PosixThreadSupport, and SequentialThreadSupport.
|
pure virtual |
Implemented in PosixThreadSupport, Win32ThreadSupport, and SequentialThreadSupport.
|
inlinevirtual |
Reimplemented in PosixThreadSupport, and Win32ThreadSupport.
Definition at line 84 of file btThreadSupportInterface.h.
|
pure virtual |
send messages to SPUs
Implemented in PosixThreadSupport, Win32ThreadSupport, and SequentialThreadSupport.
|
pure virtual |
tell the task scheduler to use no more than numTasks tasks
Implemented in PosixThreadSupport, Win32ThreadSupport, and SequentialThreadSupport.
|
pure virtual |
non-blocking test if a task is completed.
First implement all versions, and then enable this API virtual bool isTaskCompleted(unsigned int *puiArgument0, unsigned int *puiArgument1, int timeOutInMilliseconds)=0; start the spus (can be called at the beginning of each frame, to make sure that the right SPU program is loaded)
Implemented in PosixThreadSupport, Win32ThreadSupport, and SequentialThreadSupport.
|
pure virtual |
tell the task scheduler we are done with the SPU tasks
Implemented in PosixThreadSupport, Win32ThreadSupport, and SequentialThreadSupport.
|
pure virtual |
check for messages from SPUs
Implemented in PosixThreadSupport, Win32ThreadSupport, and SequentialThreadSupport.