Searched refs:pos (Results 1 – 2 of 2) sorted by relevance
98 cell = &buffer[pos & MASK]; in TryPush()105 uint32 nowPos = enqueuePos.CompareAndSwap(pos, pos + 1); in TryPush()106 if (nowPos == pos) in TryPush()111 pos = nowPos; in TryPush()120 pos = enqueuePos.LoadRelaxed(); in TryPush()127 cell->sequence.Store(pos + 1); in TryPush()139 cell = &buffer[pos & MASK]; in TryPop()146 uint32 nowPos = dequeuePos.CompareAndSwap(pos, pos + 1); in TryPop()147 if (nowPos == pos) in TryPop()152 pos = nowPos; in TryPop()[all …]
18 for (size_t pos = str.find(c); pos != string::npos; pos = str.find(c, pos + 1)) in ReplaceChar() local19 str.replace(pos, 1, replacement); in ReplaceChar()