Add a method for blocking threads on ports.

Additionally add the first lock class since we are becoming more
concurrent.
This commit is contained in:
Drew Galbraith 2023-06-12 20:56:25 -07:00
parent b6735d3175
commit 6986f534f8
13 changed files with 88 additions and 14 deletions

View file

@ -76,8 +76,8 @@ void MemToStr(uint64_t u, char* str) {
void AddProcPrefix() {
if (gScheduler != nullptr) {
auto& t = gScheduler->CurrentThread();
dbg("[%u.%u] ", t.pid(), t.tid());
auto t = gScheduler->CurrentThread();
dbg("[%u.%u] ", t->pid(), t->tid());
}
}