clean-up formatting
Change-Id: I2071e53cceb93cbe02d6bdfa238aa6ce770b0534
This commit is contained in:
committed by
Romain Guy
parent
f9e1d58772
commit
94c3623c1c
@@ -136,10 +136,10 @@ JobSystem::JobSystem(size_t threadCount, size_t adoptableThreadsCount) noexcept
|
||||
auto& states = mThreadStates;
|
||||
|
||||
#pragma nounroll
|
||||
for (size_t i=0, n= states.size() ; i < n ; i++) {
|
||||
auto &state = states[i];
|
||||
for (size_t i = 0, n = states.size(); i < n; i++) {
|
||||
auto& state = states[i];
|
||||
state.rndGen = default_random_engine(rd());
|
||||
state.mask = uint32_t(1UL << i);
|
||||
state.mask = uint32_t(1UL << i);
|
||||
state.js = this;
|
||||
if (i < hardwareThreadCount) {
|
||||
// don't start a thread of adoptable thread slots
|
||||
|
||||
Reference in New Issue
Block a user