瀏覽代碼

Move things around slightly so the compiler can track cc

tags/v1.4.90
Pierre Ossman 9 年之前
父節點
當前提交
86475a684d
共有 2 個文件被更改,包括 10 次插入0 次删除
  1. 5
    0
      tests/decperf.cxx
  2. 5
    0
      tests/encperf.cxx

+ 5
- 0
tests/decperf.cxx 查看文件

@@ -147,7 +147,12 @@ static double runTest(const char *fn)

try {
cc = new CConn(fn);
} catch (rdr::Exception e) {
fprintf(stderr, "Failed to open rfb file: %s\n", e.str());
exit(1);
}

try {
while (true)
cc->processMsg();
} catch (rdr::EndOfStream e) {

+ 5
- 0
tests/encperf.cxx 查看文件

@@ -339,7 +339,12 @@ static double runTest(const char *fn, double& ratio, unsigned long long& bytes,

try {
cc = new CConn(fn);
} catch (rdr::Exception e) {
fprintf(stderr, "Failed to open rfb file: %s\n", e.str());
exit(1);
}

try {
while (true)
cc->processMsg();
} catch (rdr::EndOfStream e) {

Loading…
取消
儲存