diff options
Diffstat (limited to 'core/os/threaded_array_processor.h')
-rw-r--r-- | core/os/threaded_array_processor.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/os/threaded_array_processor.h b/core/os/threaded_array_processor.h index 0a435961e1..d27399e4cc 100644 --- a/core/os/threaded_array_processor.h +++ b/core/os/threaded_array_processor.h @@ -57,8 +57,9 @@ void process_array_thread(void *ud) { T &data = *(T *)ud; while (true) { uint32_t index = atomic_increment(&data.index); - if (index >= data.elements) + if (index >= data.elements) { break; + } data.process(index); } } |