MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / X11Trans

Method X11Trans

server/X11Trans.cpp:32–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31
32X11Trans::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
51void X11Trans::run(void)

Callers

nothing calls this directly

Calls 4

fbx_printwarningsFunction · 0.85
setNameMethod · 0.80
getFileMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected