| 30 | |
| 31 | |
| 32 | X11Trans::X11Trans(void) : thread(NULL), deadYet(false) |
| 33 | { |
| 34 | if(fconfig.sync) nFrames = 1; |
| 35 | else nFrames = 3; |
| 36 | for(int i = 0; i < nFrames; i++) frames[i] = NULL; |
| 37 | thread = new Thread(this); |
| 38 | thread->start(); |
| 39 | profBlit.setName("Blit "); |
| 40 | profTotal.setName("Total "); |
| 41 | if(fconfig.verbose) fbx_printwarnings(vglout.getFile()); |
| 42 | #ifdef USEHELGRIND |
| 43 | ANNOTATE_BENIGN_RACE_SIZED(&deadYet, sizeof(bool), ); |
| 44 | // NOTE: Without this line, helgrind reports a data race on the class |
| 45 | // instance address in the destructor (false positive?) |
| 46 | ANNOTATE_BENIGN_RACE_SIZED(this, sizeof(X11Trans *), ); |
| 47 | #endif |
| 48 | } |
| 49 | |
| 50 | |
| 51 | void X11Trans::run(void) |
nothing calls this directly
no test coverage detected