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/BLI_task.h')
-rw-r--r--source/blender/blenlib/BLI_task.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/blenlib/BLI_task.h b/source/blender/blenlib/BLI_task.h
index 52f32c2999f..1285e24e567 100644
--- a/source/blender/blenlib/BLI_task.h
+++ b/source/blender/blenlib/BLI_task.h
@@ -143,10 +143,11 @@ typedef struct ParallelRangeTLS {
void *userdata_chunk;
} ParallelRangeTLS;
-typedef void (*TaskParallelRangeFunc)(void *userdata,
+typedef void (*TaskParallelRangeFunc)(void *__restrict userdata,
const int iter,
- const ParallelRangeTLS *tls);
-typedef void (*TaskParallelRangeFuncFinalize)(void *userdata, void *userdata_chunk);
+ const ParallelRangeTLS *__restrict tls);
+typedef void (*TaskParallelRangeFuncFinalize)(void *__restrict userdata,
+ void *__restrict userdata_chunk);
typedef struct ParallelRangeSettings {
/* Whether caller allows to do threading of the particular range.