Add extra mutex to TypePth just in case

This commit is contained in:
gingerBill
2023-01-03 18:21:42 +00:00
parent 855ebceadc
commit 17fa8cb6ef
2 changed files with 17 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
template <typename T>
struct PtrSetEntry {
static_assert(sizeof(T) == sizeof(void *), "Key size must be pointer size");
T ptr;
MapIndex next;
@@ -10,6 +12,7 @@ struct PtrSetEntry {
template <typename T>
struct PtrSet {
Slice<MapIndex> hashes;
Array<PtrSetEntry<T>> entries;
};