Home
last modified time | relevance | path

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

/foundation/communication/dsoftbus/core/common/include/
H A Dsoftbus_queue.h75 uint32_t producerTail; in QueueIsEmpty() local
83 producerTail = queue->producer.tail; in QueueIsEmpty()
87 if (((producerTail - consumerTail) & mask) == 0) { in QueueIsEmpty()
210 uint32_t producerTail; in QueueSingleConsumerDequeue() local
222 /* Prevent producerTail from being read before consumerHead, causing queue head and tail reversal. */ in QueueSingleConsumerDequeue()
225 producerTail = queue->producer.tail; in QueueSingleConsumerDequeue()
228 * 1. In normal cases, producerTail > consumerHead and producerTail < consumerHead + mask in QueueSingleConsumerDequeue()
229 * 2. If only producerTail is reversed, producerTail > consumerHea in QueueSingleConsumerDequeue()
264 uint32_t producerTail; QueueMultiConsumerDequeue() local
[all...]
/foundation/communication/dsoftbus/core/common/queue/
H A Dsoftbus_queue.c79 uint32_t producerTail; in QueueCountGet() local
87 producerTail = queue->producer.tail; in QueueCountGet()
91 *count = ((producerTail - consumerTail) & mask); in QueueCountGet()

Completed in 2 milliseconds