From 71fc06925a42e0d52ffeab7fd44ad1a3aadb910f Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 3 Aug 2016 07:05:14 +0000 Subject: [PATCH] .upptst git-svn-id: svn://ultimatepp.org/upp/trunk@10138 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- upptst/LZ4Progress/LZ4Progress.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/upptst/LZ4Progress/LZ4Progress.cpp b/upptst/LZ4Progress/LZ4Progress.cpp index f536e4d10..6c4f4abb4 100644 --- a/upptst/LZ4Progress/LZ4Progress.cpp +++ b/upptst/LZ4Progress/LZ4Progress.cpp @@ -9,8 +9,9 @@ CONSOLE_APP_MAIN StdLogSetup(LOG_COUT|LOG_FILE); String data = LoadFile("C:/xxx/xxx/upp-x11-src-9041.tar"); - auto cp = [](int64 pos, int64 size) -> bool { DLOG("Compress: " << pos << " " << size); return false; }; - auto dp = [](int64 pos, int64 size) -> bool { DLOG("DeCompress: " << pos << " " << size); return false; }; + EventGate cp, dp; + cp << [](int64 pos, int64 size) -> bool { DLOG("Compress: " << pos << " " << size); return false; }; + dp << [](int64 pos, int64 size) -> bool { DLOG("DeCompress: " << pos << " " << size); return false; }; { String c = ZstdCompress(data, cp);