[llvm] [OFFLOAD] Add support for indexed per-thread containers (PR #164263)
Alex Duran via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 23 00:51:37 PDT 2025
================
@@ -16,17 +16,93 @@
#include <list>
#include <memory>
#include <mutex>
+#include <type_traits>
+
+template <typename ObjectType> struct PerThread {
+ struct PerThreadData {
+ std::unique_ptr<ObjectType> ThreadEntry;
+ };
+
+ std::mutex Mutex;
+ std::list<std::shared_ptr<PerThreadData>> ThreadDataList;
----------------
adurang wrote:
Yes, you're right. Let me change that.
https://github.com/llvm/llvm-project/pull/164263
More information about the llvm-commits
mailing list