Home
last modified time | relevance | path

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

/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/mpsc/unbounded/
H A Dqueue.rs101 tail: Tail<T>,
118 tail: Tail {
138 self.tail.block.store(next_block, Release); in send_inner()
139 self.tail.index.fetch_add(1 << INDEX_SHIFT, Release); in send_inner()
151 let mut tail = self.tail.index.load(Acquire); variables
152 let mut block_ptr = self.tail.block.load(Acquire);
155 if tail & CLOSED == CLOSED {
158 let index = (tail >> INDEX_SHIFT) % (CAPACITY + 1);
160 tail
248 let mut tail = self.tail.index.load(Acquire) >> INDEX_SHIFT; len() variables
[all...]
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/mpsc/bounded/
H A Darray.rs41 tail: AtomicUsize,
68 tail: AtomicUsize::new(0),
77 let mut tail = self.tail.load(Acquire); in prepare_send() variables
79 if tail & CLOSED == CLOSED { in prepare_send()
82 let index = (tail >> INDEX_SHIFT) % self.capacity; in prepare_send()
87 // Compare the index of the node with the tail to avoid senders in different in prepare_send()
89 if (tail >> INDEX_SHIFT) == node_index { in prepare_send()
90 match self.tail.compare_exchange( in prepare_send()
91 tail, in prepare_send()
[all...]
/commonlibrary/rust/ylong_json/src/
H A Dlinked_list.rs21 /// Only tail insertion, reading, and eject are supported.
24 tail: *const Node<T>,
34 tail: null(),
56 // Sets prev to LinkedList.tail
57 node.prev = self.tail;
61 if self.tail.is_null() {
64 (*(self.tail as *mut Node<T>)).next = node;
67 self.tail = node;
74 if self.tail.is_null() {
78 let node = Box::from_raw(self.tail a
[all...]
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/util/
H A Dslots.rs54 tail: usize,
86 let tail = self.tail; in push_back()
94 self.entries.push(Entry::new(val, tail, NULL)); in push_back()
99 self.entries[key].prev = tail; in push_back()
104 match self.entries.get_mut(tail) { in push_back()
112 self.tail = key; in push_back()
139 self.tail = NULL; in pop_front()
184 // If this node is the tail node, update the tail nod in remove()
[all...]

Completed in 3 milliseconds