diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-10-19 10:33:42 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-10-19 10:35:39 +0300 |
commit | 9c8255d486c1271f20d33debf2a9e9ce883b5019 (patch) | |
tree | b1f5af7bbe48f7cbc59a1a422c0a95f4ed764da9 /source/blender/blenlib/BLI_task.h | |
parent | 695dc07cb12222678f035537c554bee39d4d7d23 (diff) |
Cleanup: use 'e' prefix for enum types
Diffstat (limited to 'source/blender/blenlib/BLI_task.h')
-rw-r--r-- | source/blender/blenlib/BLI_task.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenlib/BLI_task.h b/source/blender/blenlib/BLI_task.h index 418db14e2f3..53ac5f7047b 100644 --- a/source/blender/blenlib/BLI_task.h +++ b/source/blender/blenlib/BLI_task.h @@ -62,10 +62,10 @@ int BLI_task_scheduler_num_threads(void); * be launched. */ -typedef enum TaskPriority { +typedef enum eTaskPriority { TASK_PRIORITY_LOW, TASK_PRIORITY_HIGH, -} TaskPriority; +} eTaskPriority; typedef struct TaskPool TaskPool; typedef void (*TaskRunFunction)(TaskPool *__restrict pool, void *taskdata); @@ -73,21 +73,21 @@ typedef void (*TaskFreeFunction)(TaskPool *__restrict pool, void *taskdata); /* Regular task pool that immediately starts executing tasks as soon as they * are pushed, either on the current or another thread. */ -TaskPool *BLI_task_pool_create(void *userdata, TaskPriority priority); +TaskPool *BLI_task_pool_create(void *userdata, eTaskPriority priority); /* Background: always run tasks in a background thread, never immediately * execute them. For running background jobs. */ -TaskPool *BLI_task_pool_create_background(void *userdata, TaskPriority priority); +TaskPool *BLI_task_pool_create_background(void *userdata, eTaskPriority priority); /* Background Serial: run tasks one after the other in the background, * without parallelization between the tasks. */ -TaskPool *BLI_task_pool_create_background_serial(void *userdata, TaskPriority priority); +TaskPool *BLI_task_pool_create_background_serial(void *userdata, eTaskPriority priority); /* Suspended: don't execute tasks until work_and_wait is called. This is slower * as threads can't immediately start working. But it can be used if the data * structures the threads operate on are not fully initialized until all tasks * are created. */ -TaskPool *BLI_task_pool_create_suspended(void *userdata, TaskPriority priority); +TaskPool *BLI_task_pool_create_suspended(void *userdata, eTaskPriority priority); /* No threads: immediately executes tasks on the same thread. For debugging. */ TaskPool *BLI_task_pool_create_no_threads(void *userdata); |