[Bf-blender-cvs] [d8ed26c760b] profiler-editor: cleanup
Jacques Lucke
noreply at git.blender.org
Thu Apr 29 11:30:47 CEST 2021
Commit: d8ed26c760b0e44bf03d0a6ce7d81d9b4d3e9412
Author: Jacques Lucke
Date: Tue Apr 27 12:19:18 2021 +0200
Branches: profiler-editor
https://developer.blender.org/rBd8ed26c760b0e44bf03d0a6ce7d81d9b4d3e9412
cleanup
===================================================================
M source/blender/blenlib/intern/profile.cc
===================================================================
diff --git a/source/blender/blenlib/intern/profile.cc b/source/blender/blenlib/intern/profile.cc
index c6d3828e379..706076860e2 100644
--- a/source/blender/blenlib/intern/profile.cc
+++ b/source/blender/blenlib/intern/profile.cc
@@ -38,6 +38,8 @@ struct ThreadLocalProfileData;
static std::mutex registered_threadlocals_mutex;
static RawVector<ThreadLocalProfileData *> registered_threadlocals;
+template<typename T> using ProfileDataQueue = SingleProducerChunkConsumerQueue<T, RawAllocator>;
+
struct ThreadLocalProfileData {
ThreadLocalProfileData()
{
@@ -53,8 +55,8 @@ struct ThreadLocalProfileData {
}
uint64_t thread_id;
- SingleProducerChunkConsumerQueue<ProfileTaskBegin> queue_begins;
- SingleProducerChunkConsumerQueue<ProfileTaskEnd> queue_ends;
+ ProfileDataQueue<ProfileTaskBegin> queue_begins;
+ ProfileDataQueue<ProfileTaskEnd> queue_ends;
RawStack<uint64_t> id_stack;
};
More information about the Bf-blender-cvs
mailing list