NEVER FORGET TO SPECIFY THE 3RD ARG WHEN USING O_CREAT. NEVER EVER AGAIN! (2 months wasted). Worked for mode 0

This commit is contained in:
msqr1
2024-03-06 23:04:28 -08:00
parent c650bf4b12
commit 05f14c3671
8 changed files with 10304 additions and 16874 deletions

View File

@@ -11,11 +11,8 @@ void fireEv(const char *type, const char *content, int index) {
objs[$0].dispatchEvent(new CustomEvent(UTF8ToString($1), {"detail" : UTF8ToString($2)}));
},index, type, content);
}};
if(dstThrd == pthread_self()) {
proxy();
return;
}
glbQ.proxySync(dstThrd, proxy);
if(dstThrd == pthread_self()) proxy();
else glbQ.proxySync(dstThrd, proxy);
}
void reusableThrd::addTask(std::function<void()>&& task) {
static std::thread thrd{[this](){