From 3d99ad2e89eff2fe1be7495743e66bdae90fede3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 11 Jun 2025 16:18:33 +1000 Subject: [PATCH] Cleanup: correct typo in comments, use doxygen doc-strings --- source/blender/gpu/GPU_worker.hh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/source/blender/gpu/GPU_worker.hh b/source/blender/gpu/GPU_worker.hh index 76e04d526a0..a07737d3c84 100644 --- a/source/blender/gpu/GPU_worker.hh +++ b/source/blender/gpu/GPU_worker.hh @@ -16,9 +16,11 @@ namespace blender::gpu { -/* Abstracts the creation and management of secondary threads with GPU contexts. +/** + * Abstracts the creation and management of secondary threads with GPU contexts. * Must be created from the main thread. - * Threads and their context remain alive until destruction. */ + * Threads and their context remain alive until destruction. + */ class GPUWorker { private: Vector> threads_; @@ -28,9 +30,9 @@ class GPUWorker { public: enum class ContextType { - /* Use the main GPU context on the worker threads. */ + /** Use the main GPU context on the worker threads. */ Main, - /* Use a different secondary GPU context for each worker thread. */ + /** Use a different secondary GPU context for each worker thread. */ PerThread, }; @@ -38,7 +40,7 @@ class GPUWorker { * \param threads_count: Number of threads to span. * \param context_type: The type of context each thread uses. * \param mutex: Mutex used when trying to acquire the next work - * (and reused internally for termation). + * (and reused internally for termination). * \param pop_work: The callback function that will be called to acquire the next work, * should return a void pointer. * NOTE: The mutex is locked when this function is called.