16 #ifndef BT_THREAD_SUPPORT_INTERFACE_H
17 #define BT_THREAD_SUPPORT_INTERFACE_H
29 virtual void sync() = 0;
44 virtual void lock() = 0;
59 virtual void waitForResponse(
unsigned int *puiArgument0,
unsigned int *puiArgument1) =0;
88 #endif //BT_THREAD_SUPPORT_INTERFACE_H
virtual void setNumTasks(int numTasks)=0
tell the task scheduler to use no more than numTasks tasks
virtual unsigned int getSharedParam(int i)=0
virtual btBarrier * createBarrier()=0
virtual int getNumTasks() const =0
virtual int getMaxCount()=0
virtual void sendRequest(uint32_t uiCommand, ppu_address_t uiArgument0, uint32_t uiArgument1)=0
send messages to SPUs
unsigned int mCommonBuff[32]
virtual void * getThreadLocalMemory(int taskId)
virtual void deleteBarrier(btBarrier *barrier)=0
virtual void startSPU()=0
non-blocking test if a task is completed.
virtual void deleteCriticalSection(btCriticalSection *criticalSection)=0
virtual void setMaxCount(int n)=0
virtual void setSharedParam(int i, unsigned int p)=0
virtual ~btCriticalSection()
#define ATTRIBUTE_ALIGNED16(a)
virtual void stopSPU()=0
tell the task scheduler we are done with the SPU tasks
virtual btCriticalSection * createCriticalSection()=0
static void barrier(unsigned int a)
virtual void waitForResponse(unsigned int *puiArgument0, unsigned int *puiArgument1)=0
check for messages from SPUs
virtual ~btThreadSupportInterface()