InternPool: implement thread-safe hash map

This commit is contained in:
Jacob Young
2024-06-15 16:18:41 -04:00
parent ca02266157
commit cda716ecc4
4 changed files with 450 additions and 193 deletions

View File

@@ -291,3 +291,7 @@ pub fn waitAndWork(pool: *Pool, wait_group: *WaitGroup) void {
return;
}
}
pub fn getIdCount(pool: *Pool) usize {
return 1 + pool.threads.len;
}