| 72 | public: |
| 73 | |
| 74 | Compressor(int myRank_, VGLTrans *parent_) : bytes(0), |
| 75 | storedFrames(0), cframes(NULL), frame(NULL), lastFrame(NULL), |
| 76 | myRank(myRank_), deadYet(false), parent(parent_) |
| 77 | { |
| 78 | if(parent) nprocs = parent->nprocs; |
| 79 | ready.wait(); complete.wait(); |
| 80 | char temps[20]; |
| 81 | snprintf(temps, 20, "Compress %d", myRank); |
| 82 | profComp.setName(temps); |
| 83 | #ifdef USEHELGRIND |
| 84 | ANNOTATE_BENIGN_RACE_SIZED(&deadYet, sizeof(bool), ); |
| 85 | #endif |
| 86 | } |
| 87 | |
| 88 | virtual ~Compressor(void) |
| 89 | { |