pytorch/caffe2/utils/threadpool
Richard Barnes 2d38d37f5f use irange for loops (#69533)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/69533

Modified loops in files under fbsource/fbcode/caffe2/ from the format
```
for(TYPE var=x0;var<x_max;x++)
```
to the format
```
for(const auto var: irange(xmax))
```

This was achieved by running r-barnes's loop upgrader script (D28874212) with some modification to exclude all files under /torch/jit and a number of reversions or unused variable suppression warnings added by hand.

Test Plan: Sandcastle

Reviewed By: malfet

Differential Revision: D32837942

fbshipit-source-id: 8663037a38ade8f81bd5e983a614d197ea11f0d1
2021-12-07 16:53:27 -08:00
..
pthreadpool_impl.cc [XROS][ML] System specific adjustments for UTs to work. (#65245) 2021-10-01 18:15:14 -07:00
pthreadpool-cpp.cc [XROS][ML] System specific adjustments for UTs to work. (#65245) 2021-10-01 18:15:14 -07:00
pthreadpool-cpp.h Re-apply PyTorch pthreadpool changes 2020-06-23 19:26:21 -07:00
pthreadpool.cc Re-apply PyTorch pthreadpool changes 2020-06-23 19:26:21 -07:00
pthreadpool.h [XROS][ML] System specific adjustments for UTs to work. (#65245) 2021-10-01 18:15:14 -07:00
thread_pool_guard.cpp Disable avoid-non-const-global-variables lint check (#62008) 2021-07-22 18:04:40 -07:00
thread_pool_guard.h Add guard to run on current thread (#52361) 2021-03-03 11:43:40 -08:00
ThreadPool.cc [XROS][ML] System specific adjustments for UTs to work. (#65245) 2021-10-01 18:15:14 -07:00
ThreadPool.h [XROS][ML] System specific adjustments for UTs to work. (#65245) 2021-10-01 18:15:14 -07:00
ThreadPoolCommon.h Do not define C10_IOS on Mac (#37283) 2020-04-25 13:52:46 -07:00
WorkersPool.h use irange for loops (#69533) 2021-12-07 16:53:27 -08:00