Use C++ iostream in untar, enforce naming convention, remodel threading to use join, reduce lambda usage

This commit is contained in:
msqr1
2024-08-20 22:59:13 -07:00
parent 2122902190
commit 53262fe7f3
12 changed files with 125 additions and 102 deletions

View File

@@ -2,13 +2,13 @@
#include "Util.h"
#include <vosk_api.h>
extern void free(void*);
struct CommonModel {
bool normalMdl;
bool thrdUsed{};
std::atomic_bool thrdUsed{};
int index;
std::thread t;
std::function<void()> recognizerMain;
std::string storepath;
std::string id;
std::variant<VoskModel*, VoskSpkModel*> mdl;