From: Stephen Seo Date: Thu, 11 Jul 2019 10:47:39 +0000 (+0900) Subject: Minor whitespace fixes, minor .gitignore change X-Git-Tag: 1.0~43 X-Git-Url: https://git.seodisparate.com/stephenseo/server_config?a=commitdiff_plain;h=50a84f5c8c6f8f22db744c7101adaa038485fdf1;p=EntityComponentMetaSystem Minor whitespace fixes, minor .gitignore change --- diff --git a/.gitignore b/.gitignore index ae041a3..a087dc2 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ build*/ doxygen_html/ compile_commands.json tags +.clangd/ diff --git a/src/EC/Manager.hpp b/src/EC/Manager.hpp index 4b5e4e4..cb4a612 100644 --- a/src/EC/Manager.hpp +++ b/src/EC/Manager.hpp @@ -564,7 +564,7 @@ namespace EC The second parameter is default nullptr and will be passed to the function call as the second parameter as a means of providing context (useful when the function is not a lambda function). The - third parameter is default 1 (not multi-threaded). If the third + third parameter is default 1 (not multi-threaded). If the third parameter threadCount is set to a value greater than 1, then threadCount threads will be used. Note that multi-threading is based on splitting the task of calling the function across sections @@ -865,7 +865,7 @@ namespace EC std::make_tuple( signatureBitset, context, - [function, helper, this] + [function, helper, this] (std::size_t threadCount, std::vector matching, void* context) @@ -1367,7 +1367,7 @@ namespace EC threads[i].join(); } } - + // call functions on matching entities EC::Meta::forEachDoubleTuple( EC::Meta::Morph >{}, @@ -1563,7 +1563,7 @@ namespace EC threads[i].join(); } } - + // call functions on matching entities EC::Meta::forEachDoubleTuple( EC::Meta::Morph >{},