X-Git-Url: http://sraa.de/git/?a=blobdiff_plain;f=dol%2Fsrc%2Fdol%2Fvisitor%2Fcell%2Flib%2Fppu%2FProcessWrapper.h;fp=dol%2Fsrc%2Fdol%2Fvisitor%2Fcell%2Flib%2Fppu%2FProcessWrapper.h;h=0754af43089b8d420762acdfc43790ee5d1184d6;hb=8c411cf24ed0eb889191aaeafd8fa1e69081df42;hp=0000000000000000000000000000000000000000;hpb=dea7a4fb1ed110d3ce6e6d9255103d724bd66c0e;p=jump.git diff --git a/dol/src/dol/visitor/cell/lib/ppu/ProcessWrapper.h b/dol/src/dol/visitor/cell/lib/ppu/ProcessWrapper.h new file mode 100644 index 0000000..0754af4 --- /dev/null +++ b/dol/src/dol/visitor/cell/lib/ppu/ProcessWrapper.h @@ -0,0 +1,32 @@ +#ifndef _PROCESSWRAPPER_H_ +#define _PROCESSWRAPPER_H_ + +#include + +/** + * Process Wrapper Class + */ +class ProcessWrapper +{ + public: + ProcessWrapper(char* name, int iteratorIndex[4]); + virtual ~ProcessWrapper(); + + virtual void init(); + virtual int fire(); + virtual bool isDetached() { return _isDetached; } + virtual void detach(); + virtual int getIndex(unsigned indexNumber) const; + + // Positions for read and write operations which are blocked by Protothread + unsigned int readPos; + unsigned int writePos; + + protected: + char* _name;; + DOLProcess _process; + bool _isDetached; + int _iteratorIndex[4]; +}; + +#endif