Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/blender/compositor/intern/COM_WorkScheduler.cc4
-rw-r--r--source/blender/compositor/intern/COM_WorkScheduler.h15
2 files changed, 2 insertions, 17 deletions
diff --git a/source/blender/compositor/intern/COM_WorkScheduler.cc b/source/blender/compositor/intern/COM_WorkScheduler.cc
index 71f062ed5bf..5d3f232221f 100644
--- a/source/blender/compositor/intern/COM_WorkScheduler.cc
+++ b/source/blender/compositor/intern/COM_WorkScheduler.cc
@@ -74,7 +74,7 @@ static struct {
} g_work_scheduler;
#if COM_CURRENT_THREADING_MODEL == COM_TM_QUEUE
-void *WorkScheduler::thread_execute_cpu(void *data)
+static void *thread_execute_cpu(void *data)
{
CPUDevice *device = (CPUDevice *)data;
WorkPackage *work;
@@ -87,7 +87,7 @@ void *WorkScheduler::thread_execute_cpu(void *data)
return nullptr;
}
-void *WorkScheduler::thread_execute_gpu(void *data)
+static void *thread_execute_gpu(void *data)
{
Device *device = (Device *)data;
WorkPackage *work;
diff --git a/source/blender/compositor/intern/COM_WorkScheduler.h b/source/blender/compositor/intern/COM_WorkScheduler.h
index dbfa97a2238..6b53cc3efd6 100644
--- a/source/blender/compositor/intern/COM_WorkScheduler.h
+++ b/source/blender/compositor/intern/COM_WorkScheduler.h
@@ -28,21 +28,6 @@
* \ingroup execution
*/
struct WorkScheduler {
-
-#if COM_CURRENT_THREADING_MODEL == COM_TM_QUEUE
- /**
- * \brief main thread loop for cpudevices
- * inside this loop new work is queried and being executed
- */
- static void *thread_execute_cpu(void *data);
-
- /**
- * \brief main thread loop for gpudevices
- * inside this loop new work is queried and being executed
- */
- static void *thread_execute_gpu(void *data);
-#endif
- public:
/**
* \brief schedule a chunk of a group to be calculated.
* An execution group schedules a chunk in the WorkScheduler