/commonlibrary/memory_utils/libpurgeablemem/c/src/ |
H A D | purgeable_mem_builder_c.c | 36 /* append a guest builder @newcomer to @head */ 37 static void AppendBuilder(struct PurgMemBuilder *head, struct PurgMemBuilder *newcomer); 115 /* append a guest builder @newcomer to @head */ 116 static void AppendBuilder(struct PurgMemBuilder *head, struct PurgMemBuilder *newcomer) in AppendBuilder() argument 118 if (head == NULL) { in AppendBuilder() 119 PM_HILOG_ERROR_C(LOG_CORE, "%{public}s: head is NULL!", __func__); in AppendBuilder() 122 if (!head->nextBuilder) { in AppendBuilder() 123 head->nextBuilder = newcomer; in AppendBuilder() 126 return AppendBuilder(head->nextBuilder, newcomer); in AppendBuilder()
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/util/ |
H A D | linked_list.rs | 63 head: NonNull<L>, 85 let head = Box::<L>::default(); 86 let head_ptr = unsafe { NonNull::new_unchecked(Box::into_raw(head)) }; 90 LinkedList { head: head_ptr } 96 let head = L::node(self.head).as_mut(); 97 L::node(val).as_mut().next = head.next; 98 L::node(val).as_mut().prev = Some(self.head); 101 if let Some(first) = head.next { 104 head [all...] |
H A D | slots.rs | 45 head: usize, 53 head: usize, 106 self.head = key; in push_back() 116 /// Pop item from the container head. 130 let curr = self.head; in pop_front() 132 self.head = entry.next; in pop_front() 137 match self.entries.get_mut(self.head) { in pop_front() 141 Some(head) => { in pop_front() 142 head.prev = NULL; in pop_front() 178 self.head in remove() [all...] |
H A D | slab.rs | 278 slots.head = 0; in compact() 320 locked.slots[idx].next = locked.head as u32; in release() 321 locked.head = idx; in release() 336 if locked.head < locked.slots.len() { in allocate() 339 let idx = locked.head; in allocate() 342 locked.head = slot.next as usize; in allocate() 367 locked.head += 1; in allocate() 391 pub head: usize, 399 head: 0, in new()
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/mpsc/bounded/ |
H A D | array.rs | 40 head: RefCell<usize>, 67 head: RefCell::new(0), 143 let head = *self.head.borrow(); 144 let index = head % self.capacity; 150 if head == node_index.wrapping_add(1) { 156 self.head.replace(head + 1); 201 let head = *self.head in len() [all...] |
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/mpsc/unbounded/ |
H A D | queue.rs | 100 head: RefCell<Head<T>>, 113 head: RefCell::new(Head { 186 let mut head = self.head.borrow_mut(); variables 187 let head_index = head.index; 188 let block_ptr = head.block.as_ptr(); 199 head.block = NonNull::new(block.next.load(Acquire)).unwrap(); 204 head.index = head_index.wrapping_add(2); 206 head.index = head_index.wrapping_add(1); 247 let head in len() [all...] |
/commonlibrary/rust/ylong_json/src/ |
H A D | linked_list.rs | 23 head: *const Node<T>, 33 head: null(), 62 self.head = node; 82 self.head = null(); 97 head: self.head, 108 head: self.head, 120 current: self.head, 130 current: self.head, [all...] |
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/executor/ |
H A D | queue.rs | 127 /// Front stores the position of both head and steal 154 let (_, head) = unwrap(self.front.load(Acquire)); in len() 155 rear.wrapping_sub(head) in len() 199 let (_, head) = unwrap(self.front.load(Acquire)); in is_empty() 201 head == rear in is_empty() 205 let mut head = self.front.load(Acquire); variables 208 let (steal_pos, real_pos) = unwrap(head); 225 let res = self.front.compare_exchange(head, next, AcqRel, Acquire); 228 Err(actual) => head = actual, 417 let mut head in drop() variables [all...] |
/commonlibrary/c_utils/base/src/ |
H A D | io_event_reactor.cpp | 56 IOEventHandler* h = ioHandlers_[fd].head.get(); in InsertNodeFront() 173 for (IOEventHandler* cur = ioHandlers_[target->fd_].head.get(); cur != nullptr; cur = cur->next_) { in HasHandler() 206 for (IOEventHandler* cur = ioHandlers_[fd].head.get(); cur != nullptr; cur = cur->next_) { in UpdateToDemultiplexer() 244 for (IOEventHandler* cur = ioHandlers_[fd].head.get()->next_; cur != nullptr; cur = cur->next_) { in HandleEvents() 314 if (ioHandlers_[fd].head->next_ == nullptr) { in DoClean() 318 for (IOEventHandler* cur = ioHandlers_[fd].head->next_; cur != nullptr; cur = cur->next_) { in DoClean()
|
/commonlibrary/c_utils/base/include/ |
H A D | io_event_reactor.h | 75 std::shared_ptr<IOEventHandler> head; member 81 head = std::make_shared<IOEventHandler>(); in FdEvents()
|
/commonlibrary/ets_utils/js_sys_module/console/ |
H A D | console.h | 74 static void GraphTable(napi_env env, napi_value head, napi_value columns, const size_t& length);
|
H A D | console.cpp | 306 std::string Console::RenderHead(napi_env env, napi_value head, std::vector<size_t> columnWidths) in RenderHead() argument 312 napi_get_element(env, head, i, &element); in RenderHead() 377 void Console::GraphTable(napi_env env, napi_value head, napi_value columns, const size_t& length) in GraphTable() argument 380 napi_get_array_length(env, head, &columnLen); in GraphTable() 387 napi_get_element(env, head, i, &element); in GraphTable() 403 // print head row in GraphTable() 407 std::string indexRow2 = RenderHead(env, head, columnWidths); in GraphTable()
|
/commonlibrary/rust/ylong_http/ylong_http/src/request/ |
H A D | mod.rs | 123 /// let request = Request::head("www.example.com").body(()).unwrap(); 125 pub fn head<T>(uri: T) -> RequestBuilder in head() functions
|