diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-21 02:04:15 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-21 02:04:15 +0200 |
commit | 07bde9f8575701bd0db60baf71aca2465361ff64 (patch) | |
tree | 4660c1311b9ea9a14b31fa61f67f878857d80ee9 /c/test.cpp | |
parent | b9573a485baf98e9fb749289b8b9c1f73f70d280 (diff) | |
download | EpisodeBrowser-07bde9f8575701bd0db60baf71aca2465361ff64.tar.gz |
Reimplement WaitFor.
Diffstat (limited to 'c/test.cpp')
-rw-r--r-- | c/test.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -1,3 +1,4 @@ +#include <thread> #include <windows.h> #include "data.h" @@ -224,12 +225,8 @@ TESTS TEST(Fetch) { - extern FileView<ElvDataA> g_fvElv; - extern FileView<DlvDataA> g_fvDlv; - void FetchData(FileView<ElvDataA>& fvElv, FileView<DlvDataA>& fvDlv); - //FileView<ElvDataA> fvElv{L"testelv.dat", 1080}; - //FileView<DlvDataA> 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)); |