АВ
Size: a a a
АВ
АВ
LA
О
LA
В
LA
В
LA
В
LA
RN
while ([this](){ std::lock_guard<std::mutex> lg(jobs_mtx_); return !jobs_.empty(); }())
jobs_
- очередь задачO
while ([this](){ std::lock_guard<std::mutex> lg(jobs_mtx_); return !jobs_.empty(); }())
jobs_
- очередь задачwhile (std::lock_guard
<std::mutex>(jobs_mtx_), !jobs_.empty()) {...}
?O
while ([this](){ std::lock_guard<std::mutex> lg(jobs_mtx_); return !jobs_.empty(); }())
jobs_
- очередь задачRN
RN
RN
m
O
while (std::lock_guard
<std::mutex>(jobs_mtx_), !jobs_.empty()) {...}
?while (std::lock_guard(jobs_mtx_), !jobs_.empty())
{ ... }
Её понятность оставляет желать лучшего, но я всё ещё нахожу эту конструкцию читаемее вызова лямбдыO