diff options
author | Jacques Lucke <jacques@blender.org> | 2021-06-16 17:13:53 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-06-16 17:14:02 +0300 |
commit | 45d59e0df5fe749d428ebf662b61844561df64c4 (patch) | |
tree | a70616dc409c67006956ac149bd43efa22c61bc4 /source/blender/blenlib/BLI_task.hh | |
parent | 0cebe554d13bf1ea4c81fd4addee30dd4ea4d2f1 (diff) |
BLI: add threading namespace
This namespace groups threading related functions/classes. This avoids
adding more threading related stuff to the blender namespace. Also it
makes naming a bit easier, e.g. the c++ version of BLI_task_isolate could
become blender::threading::isolate_task or something similar.
Differential Revision: https://developer.blender.org/D11624
Diffstat (limited to 'source/blender/blenlib/BLI_task.hh')
-rw-r--r-- | source/blender/blenlib/BLI_task.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_task.hh b/source/blender/blenlib/BLI_task.hh index 8e963c958b2..cdf7759ef41 100644 --- a/source/blender/blenlib/BLI_task.hh +++ b/source/blender/blenlib/BLI_task.hh @@ -44,7 +44,7 @@ #include "BLI_index_range.hh" #include "BLI_utildefines.h" -namespace blender { +namespace blender::threading { template<typename Range, typename Function> void parallel_for_each(Range &range, const Function &function) @@ -75,4 +75,4 @@ void parallel_for(IndexRange range, int64_t grain_size, const Function &function #endif } -} // namespace blender +} // namespace blender::threading |