Searched refs:lastScheduledTask (Results 1 – 1 of 1) sorted by relevance
53 … internal val size: Int get() = if (lastScheduledTask.value != null) bufferSize + 1 else bufferSize55 private val lastScheduledTask = atomic<Task?>(null) constant66 fun poll(): Task? = lastScheduledTask.getAndSet(null) ?: pollBuffer() in poll()74 val previous = lastScheduledTask.getAndSet(task) ?: return null in poll()141 lastScheduledTask.getAndSet(null)?.let { globalQueue.addLast(it) } in offloadAllWorkTo()152 val lastScheduled = victim.lastScheduledTask.value ?: return NOTHING_TO_STEAL in tryStealLastScheduled()166 if (victim.lastScheduledTask.compareAndSet(lastScheduled, null)) { in tryStealLastScheduled()