Add extra mutex to TypePth just in case

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

No files matched your search

+3
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;
};