From 07bde9f8575701bd0db60baf71aca2465361ff64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 21 Aug 2022 02:04:15 +0200 Subject: Reimplement WaitFor. --- c/test.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'c/test.cpp') diff --git a/c/test.cpp b/c/test.cpp index 5bd8958..d784367 100644 --- a/c/test.cpp +++ b/c/test.cpp @@ -1,3 +1,4 @@ +#include #include #include "data.h" @@ -224,12 +225,8 @@ TESTS TEST(Fetch) { - extern FileView g_fvElv; - extern FileView g_fvDlv; - void FetchData(FileView& fvElv, FileView& fvDlv); - //FileView fvElv{L"testelv.dat", 1080}; - //FileView fvDlv{L"testdlv.dat", 1080}; - FetchData(g_fvElv, g_fvDlv); + bool bDone = false; + std::thread{FetchData, &bDone}.detach(); } }; @@ -245,7 +242,7 @@ int RunTests() //MigrateCfg{} //MigrateDlvDataFromPrologToDisk{}, //DownloadDataViaProlog{}, - Fetch{}, + //Fetch{}, }; printf("Results (%llu tests):\n", sizeof(tests)/sizeof(*tests)); -- cgit v1.2.3