00001 /* 00002 Bullet Continuous Collision Detection and Physics Library 00003 Copyright (c) 2003-2007 Erwin Coumans http://bulletphysics.com 00004 00005 This software is provided 'as-is', without any express or implied warranty. 00006 In no event will the authors be held liable for any damages arising from the use of this software. 00007 Permission is granted to anyone to use this software for any purpose, 00008 including commercial applications, and to alter it and redistribute it freely, 00009 subject to the following restrictions: 00010 00011 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 00012 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 00013 3. This notice may not be removed or altered from any source distribution. 00014 */ 00015 00016 #ifndef THREAD_SUPPORT_INTERFACE_H 00017 #define THREAD_SUPPORT_INTERFACE_H 00018 00019 00020 //#include <LinearMath/btScalar.h> //for uint32_t etc. 00021 #include "PlatformDefinitions.h" 00022 #include "PpuAddressSpace.h" 00023 00024 class btThreadSupportInterface 00025 { 00026 public: 00027 00028 virtual ~btThreadSupportInterface(); 00029 00031 virtual void sendRequest(uint32_t uiCommand, ppu_address_t uiArgument0, uint32_t uiArgument1) =0; 00032 00034 virtual void waitForResponse(unsigned int *puiArgument0, unsigned int *puiArgument1) =0; 00035 00037 virtual void startSPU() =0; 00038 00040 virtual void stopSPU()=0; 00041 00043 virtual void setNumTasks(int numTasks)=0; 00044 00045 virtual int getNumTasks() const = 0; 00046 00047 }; 00048 00049 #endif //THREAD_SUPPORT_INTERFACE_H 00050
1.6.1