Lines Matching refs:id
48 Atomic32<int32> id; member
55 : id(_id) in PoolElementHeader()
160 if (check_id != task->id.Load()) in IsValid()
251 inline void MoveCtor(PoolItem* element, int id, T && val) in MoveCtor() argument
253 new(element) PoolItem(id, std::move(val)); in MoveCtor()
272 pElement->id.Store(TaskID::UNUSED); in TaskPool()
285 int preValue = pElement->id.Exchange(TaskID::UNUSED); in ~TaskPool()
305 bool isUnused = ((pElement->id.Load() & 1 ) != 0); in TryAlloc()
314 int id = idGenerator.AddFetch(2); in TryAlloc() local
315 MoveCtor( pElement, id, std::move(task) ); in TryAlloc()
316 return TaskHandle(id, pElement); in TryAlloc()