From 7046e37eded55ac8879835500788a1e734437bbf Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Tue, 23 Mar 2021 15:33:51 +0100 Subject: Cleanup: WorkScheduler. - Use constexpr for better readability. - Split in functions per backend. - Split work scheduler global struct in smaller structs. - Replaced std::vector with blender::Vector. - Removed threading defines in COM_defines.h --- source/blender/compositor/COM_defines.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'source/blender/compositor/COM_defines.h') diff --git a/source/blender/compositor/COM_defines.h b/source/blender/compositor/COM_defines.h index 6aa42c45212..266f532ebb8 100644 --- a/source/blender/compositor/COM_defines.h +++ b/source/blender/compositor/COM_defines.h @@ -62,26 +62,8 @@ enum class CompositorPriority { // chunk size determination #define COM_PREVIEW_SIZE 140.0f -#define COM_OPENCL_ENABLED //#define COM_DEBUG -// workscheduler threading models -/** - * COM_TM_QUEUE is a multi-threaded model, which uses the BLI_thread_queue pattern. - * This is the default option. - */ -#define COM_TM_QUEUE 1 - -/** - * COM_TM_NOTHREAD is a single threading model, everything is executed in the caller thread. - * easy for debugging - */ -#define COM_TM_NOTHREAD 0 - -/** - * COM_CURRENT_THREADING_MODEL can be one of the above, COM_TM_QUEUE is currently default. - */ -#define COM_CURRENT_THREADING_MODEL COM_TM_QUEUE // chunk order /** * \brief The order of chunks to be scheduled -- cgit v1.2.3