Searched refs:spinningWorkers (Results 1 – 2 of 2) sorted by relevance
136 for (size_t i = 0; i < spinningWorkers.size(); i++) {137 spinningWorkers[i] = -1;176 auto i = --nextSpinningWorkerIdx % spinningWorkers.size(); in enqueue()177 auto idx = spinningWorkers[i].exchange(-1); in enqueue()218 auto idx = nextSpinningWorkerIdx++ % spinningWorkers.size(); in onBeginSpinning()219 spinningWorkers[idx] = workerId; in onBeginSpinning()
496 std::array<std::atomic<int>, 8> spinningWorkers; variable