Truly independent web browser
AK: Give ThreadID a hash function
Zaggy10249dd38ddf7a8d
diff --git a/AK/ThreadID.h b/AK/ThreadID.hindex d71f22d6bf1..1396171b4dd 100644--- a/AK/ThreadID.h+++ b/AK/ThreadID.h@@ -7,6 +7,7 @@#pragma once#include <AK/Format.h>+#include <AK/Traits.h>#include <AK/Types.h>namespace AK {@@ -43,6 +44,11 @@ struct Formatter<ThreadID> : Formatter<u64> {}};+template<>+struct Traits<ThreadID> : public DefaultTraits<ThreadID> {+ static unsigned hash(ThreadID thread_id) { return Traits<u64>::hash(thread_id.value()); }+};+}// Deliberately not exported to the global namespace: macOS CarbonCore declares a global