4 * Created on: Feb 24, 2009
8 #ifndef PROC_WRAPPER_H_
9 #define PROC_WRAPPER_H_
11 #include <spu_intrinsics.h>
12 #include <spu_mfcio.h>
19 #define waittag(tag_id) mfc_write_tag_mask(1<<tag_id); \
20 mfc_read_tag_status_all();
25 * Wrapper for a SPE Process
30 virtual ~proc_wrapper();
34 virtual bool isDetached() { return _isDetached; }
35 virtual void detach();
36 virtual int getIndex(unsigned indexNumber) const;
38 //for FIFO access --> current position you are while blocking
40 unsigned int writePos;
46 int _iteratorIndex[4];
49 uint32_t* port_queue_id;
50 uint32_t number_of_ports;
51 virtual int getIndex(const char* string, char* tokens,
55 #endif /* PROC_WRAPPER_H_ */