Cleanup: Remove unused TaskPool user_mutex

This commit is contained in:
Hans Goudey
2025-05-07 11:32:33 -04:00
parent e231adc371
commit fbb659c4c5
2 changed files with 0 additions and 15 deletions

View File

@@ -120,11 +120,6 @@ bool BLI_task_pool_current_canceled(TaskPool *pool);
*/
void *BLI_task_pool_user_data(TaskPool *pool);
/**
* Optional mutex to use from run function.
*/
ThreadMutex *BLI_task_pool_user_mutex(TaskPool *pool);
/** \} */
/* -------------------------------------------------------------------- */

View File

@@ -158,7 +158,6 @@ struct TaskPool {
TaskPoolType type;
bool use_threads;
ThreadMutex user_mutex;
void *userdata;
#ifdef WITH_TBB
@@ -185,8 +184,6 @@ struct TaskPool {
this->type = TASK_POOL_TBB;
}
BLI_mutex_init(&this->user_mutex);
switch (this->type) {
case TASK_POOL_TBB:
case TASK_POOL_TBB_SUSPENDED:
@@ -229,8 +226,6 @@ struct TaskPool {
break;
}
}
BLI_mutex_end(&this->user_mutex);
}
TaskPool(TaskPool &&other) = delete;
@@ -552,8 +547,3 @@ void *BLI_task_pool_user_data(TaskPool *pool)
{
return pool->userdata;
}
ThreadMutex *BLI_task_pool_user_mutex(TaskPool *pool)
{
return &pool->user_mutex;
}