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:
parent
8794d35c78
commit
c2625a127e
@ -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__ });
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user