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:
Diffstat (limited to 'source/blender/blenlib/intern/task_pool.cc')
-rw-r--r--source/blender/blenlib/intern/task_pool.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/task_pool.cc b/source/blender/blenlib/intern/task_pool.cc
index 1a119e135d5..dfed24da2d9 100644
--- a/source/blender/blenlib/intern/task_pool.cc
+++ b/source/blender/blenlib/intern/task_pool.cc
@@ -20,8 +20,8 @@
* Task pool to run tasks in parallel.
*/
+#include <cstdlib>
#include <memory>
-#include <stdlib.h>
#include <utility>
#include "MEM_guardedalloc.h"
@@ -149,13 +149,13 @@ class TBBTaskGroup : public tbb::task_group {
/* Task Pool */
-typedef enum TaskPoolType {
+enum TaskPoolType {
TASK_POOL_TBB,
TASK_POOL_TBB_SUSPENDED,
TASK_POOL_NO_THREADS,
TASK_POOL_BACKGROUND,
TASK_POOL_BACKGROUND_SERIAL,
-} TaskPoolType;
+};
struct TaskPool {
TaskPoolType type;