1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Non blocking loop. Want to change the naming here.

This commit is contained in:
Peter Boyle 2019-06-04 20:52:59 +01:00
parent 8794d35c78
commit c2625a127e

View File

@ -178,6 +178,9 @@ void LambdaApply2D(uint64_t Osites, uint64_t Isites, lambda Lambda)
#define accelerator_loopN( iterator, num, ... ) \
thread_loop( (auto iterator = 0;iterator<num;iterator++), { __VA_ARGS__ });
#define accelerator_loopNB( iterator, num, ... ) \
thread_loop( (auto iterator = 0;iterator<num;iterator++), { __VA_ARGS__ });
#define cpu_loop( iterator, range, ... ) \
thread_loop( (auto iterator = range.begin();iterator<range.end();iterator++), { __VA_ARGS__ });