diff options
author | Jeroen Bakker <jeroen@blender.org> | 2020-04-21 16:57:51 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-04-21 16:57:51 +0300 |
commit | b08e18ff36bb49d8e5651f8f53fff972bd773b61 (patch) | |
tree | 50e54b90df324da6976c72fe74807abcdc53c231 /source/blender/blenlib | |
parent | 2d6ad884664ec915f6704a6b0a67876150161669 (diff) |
CleanUp: Remove thread_id from `TaskFreeFunction`
It isn't used; cleanup related to {D7475}
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_task.h | 2 | ||||
-rw-r--r-- | source/blender/blenlib/intern/task_pool.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/BLI_task.h b/source/blender/blenlib/BLI_task.h index def41cf0a82..2b5964d091c 100644 --- a/source/blender/blenlib/BLI_task.h +++ b/source/blender/blenlib/BLI_task.h @@ -71,7 +71,7 @@ typedef enum TaskPriority { typedef struct TaskPool TaskPool; typedef void (*TaskRunFunction)(TaskPool *__restrict pool, void *taskdata, int threadid); -typedef void (*TaskFreeFunction)(TaskPool *__restrict pool, void *taskdata, int threadid); +typedef void (*TaskFreeFunction)(TaskPool *__restrict pool, void *taskdata); TaskPool *BLI_task_pool_create(TaskScheduler *scheduler, void *userdata, TaskPriority priority); TaskPool *BLI_task_pool_create_background(TaskScheduler *scheduler, diff --git a/source/blender/blenlib/intern/task_pool.cc b/source/blender/blenlib/intern/task_pool.cc index 95d5388435b..60ed156105c 100644 --- a/source/blender/blenlib/intern/task_pool.cc +++ b/source/blender/blenlib/intern/task_pool.cc @@ -230,11 +230,11 @@ typedef struct TaskThread { } TaskThread; /* Helper */ -BLI_INLINE void task_data_free(Task *task, const int thread_id) +BLI_INLINE void task_data_free(Task *task, const int UNUSED(thread_id)) { if (task->free_taskdata) { if (task->freedata) { - task->freedata(task->pool, task->taskdata, thread_id); + task->freedata(task->pool, task->taskdata); } else { MEM_freeN(task->taskdata); |