Home
last modified time | relevance | path

Searched refs:primaryCache (Results 1 - 1 of 1) sorted by relevance

/foundation/resourceschedule/ffrt/src/util/
H A Dslab.h86 SpmcQueue primaryCache; member in ffrt::SimpleAllocator
102 primaryCache.FindElement(reinterpret_cast<void *>(p + i)) == false) { in getUnfreed()
133 primaryCache.Init(count); in init()
135 primaryCache.PushTail(p + i); in init()
144 if (primaryCache.GetCapacity() == 0) { in Alloc()
148 if (primaryCache.GetLength()) { in Alloc()
157 return static_cast<T*>(primaryCache.PopHead()); in Alloc()
165 primaryCache.PushTail(t); in free()
190 if (primaryCache.GetLength() == reserved && secondaryCache.size() == 0) { in ~SimpleAllocator()

Completed in 2 milliseconds