Remove single file deployment for streaming instantiation and smaller size.

This commit is contained in:
msqr1
2024-08-28 19:15:56 -07:00
parent 01068a2c6c
commit 0166c153bd
20 changed files with 87 additions and 86 deletions

View File

@@ -13,7 +13,7 @@ int untar(unsigned char* tar, int tarSize, const std::string& storepath) {
path.reserve(100); // Max length
unsigned char* end = tar + tarSize;
while(tar <= end) {
if(tar[156] != '5' && tar[156] != 0 &&
if(tar[156] != '5' && tar[156] != 0 &&
tar[156] != '0') {
return IncorrectFiletype;
}
@@ -64,7 +64,7 @@ void Thread::startup(ThreadPool* pool) {
emscripten_atomic_store_u32(&pool->qLock, false);
emscripten_atomic_notify(&pool->qLock, 1);
fn();
}
}
}
ThreadPool::ThreadPool() {
for(Thread& thrd : threads) {