Home
last modified time | relevance | path

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

/foundation/bundlemanager/bundle_framework_lite/utils/bundle_lite/
H A Dutils_list.h37 head_ = new (std::nothrow) Node<T>(); in List()
38 head_->next_ = head_; in List()
39 head_->prev_ = head_; in List()
45 delete head_; in ~List()
46 head_ = nullptr; in ~List()
52 return head_->value_; in Front()
55 return head_->next_->value_; in Front()
65 node->prev_ = head_; in PushFront()
162 Node<T> *head_; global() member in OHOS::List
[all...]
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/
H A Dlist.h78 head_.next_ = &head_; in List()
79 head_.prev_ = &head_; in List()
99 return head_.next_->data_; in Front()
111 return head_.prev_->data_; in Back()
129 listNode->prev_ = head_.prev_; in PushBack()
130 listNode->next_ = &head_; in PushBack()
131 head_.prev_->next_ = listNode; in PushBack()
132 head_ in PushBack()
372 ListNode<T> head_; global() member in OHOS::List
[all...]
/foundation/arkui/ace_engine_lite/frameworks/src/core/base/
H A Dasync_task_manager.cpp51 : head_(nullptr), in AsyncTaskManager()
67 while (head_ != nullptr) { in Reset()
68 AsyncTask *task = head_; in Reset()
69 head_ = head_->next; in Reset()
99 while (head_ != nullptr) { in Callback()
100 AsyncTask *task = head_; in Callback()
103 if (head_ == tail_) { in Callback()
106 head_ = head_ in Callback()
[all...]
H A Dasync_task_manager.h74 AsyncTask *head_; member in OHOS::ACELite::final
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/multiver/
H A Dmulti_ver_value_object.cpp47 head_.flag = HASH_FLAG; in SetValueHash()
58 int errCode = parcel.WriteInt(head_.flag); in GetSerialData()
63 errCode = parcel.WriteInt(head_.reserved); in GetSerialData()
68 errCode = parcel.WriteInt(head_.hashNum); in GetSerialData()
73 errCode = parcel.WriteInt(head_.length); in GetSerialData()
91 head_.flag = static_cast<uint8_t>(readValue); in DeSerialData()
93 head_.reserved = static_cast<uint8_t>(readValue); in DeSerialData()
95 head_.hashNum = static_cast<uint16_t>(readValue); in DeSerialData()
97 head_.length = static_cast<uint32_t>(readValue); in DeSerialData()
103 if (((head_ in DeSerialData()
[all...]
H A Dmulti_ver_value_object.h61 ValueObjectHead head_; member in DistributedDB::MultiVerValueObject
/foundation/multimedia/media_foundation/interface/inner_api/osal/utils/
H A Dring_buffer.h50 auto available = tail_ - head_; in ReadBuffer()
57 available = tail_ - head_; in ReadBuffer()
61 size_t index = head_ % bufferSize_; in ReadBuffer()
69 head_ += available; in ReadBuffer()
83 while (writeSize + tail_ > head_ + bufferSize_) { in WriteBuffer()
109 head_ = 0; in SetActive()
127 return (tail_ - head_); in GetSize()
132 return head_; in GetHead()
153 head_ = 0; in Clear()
163 if (newTail >= 0 && newTail >= head_) { in SetTail()
[all...]
/foundation/arkui/ace_engine_lite/frameworks/src/core/stylemgr/
H A Dlink_stack.cpp23 head_ = new StackNode(nullptr); in InitStack()
24 if (head_ == nullptr) { in InitStack()
28 top_ = head_; in InitStack()
34 StackNode *tmp = head_; in FreeNode()
37 head_ = head_->GetNodeNext(); in FreeNode()
39 tmp = head_; in FreeNode()
46 return head_ == top_; in IsEmpty()
H A Dlink_stack.h122 StackNode *head_; member in OHOS::ACELite::final
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_task_executor.h57 uint32_t newHead = (head_ + 1) % SIZE; in Push()
61 buffer_[head_] = std::move(t); in Push()
62 head_ = newHead; in Push()
67 if (tail_ == head_) { in Pop()
79 return head_ != tail_; in HasTask()
84 return ((head_ + 1) % SIZE) != tail_; in HasSpace()
89 if (head_ > tail_) { in Size()
90 return head_ - tail_; in Size()
92 return tail_ - head_ + SIZE; in Size()
100 uint32_t head_ member in OHOS::Rosen::TaskQueue
[all...]
/foundation/multimedia/media_foundation/engine/include/foundation/utils/
H A Dring_buffer.h50 auto available = tail_ - head_; in ReadBuffer()
57 available = tail_ - head_; in ReadBuffer()
61 size_t index = head_ % bufferSize_; in ReadBuffer()
69 head_ += available; in ReadBuffer()
83 while (writeSize + tail_ > head_ + bufferSize_) { in WriteBuffer()
109 head_ = 0; in SetActive()
118 return (tail_ - head_); in GetSize()
134 head_ = 0; in Clear()
146 head_ += offset - mediaOffset_; in Seek()
155 size_t head_ {
[all...]
/foundation/resourceschedule/ffrt/src/util/
H A Dspmc_queue.cpp47 return tail_.load() - head_.load(); in GetLength()
62 unsigned int head = head_.load(); in PopHead()
69 if (atomic_compare_exchange_weak(&head_, &head, head + 1)) { in PopHead()
81 unsigned int head = head_.load(); in PushTail()
97 unsigned int head = head_.load(); in FindElement()
116 while ((dstQueue.GetLength() < dstQueue.GetCapacity()) && (head_.load() != tail_.load())) { in PopHeadToAnotherQueue()
H A Dspmc_queue.h70 std::atomic<unsigned int> head_ {0};
/foundation/multimedia/av_codec/services/services/codec/server/post_processing/
H A Dlock_free_queue.h83 if (newTail == head_.load()) { in PushWait()
85 canPushCv_.wait(lock, [&newTail, this]() { return newTail != head_.load() || !active_.load(); }); in PushWait()
114 currentHead = head_.load(); in PopWait()
126 canPop = head_.compare_exchange_strong(currentHead, newHead); in PopWait()
137 return head_.load() == tail_.load(); in Empty()
142 return head_.load() == (tail_.load() + 1) % queueSize_; in Full()
148 head_.store(0); in Clear()
175 std::atomic<size_t> head_{0};
/foundation/distributeddatamgr/kv_store/frameworks/common/
H A Dlru_bucket.h75 Insert(&head_, it->second); in Get()
97 Insert(&head_, it->second); in Set()
110 Insert(&head_, node); in Set()
187 auto *node = head_.prev_; in PopBack()
221 Node head_; member in OHOS::LRUBucket
/foundation/distributeddatamgr/relational_store/rdbmock/frameworks/native/rdb/
H A Dlru_bucket.h75 Insert(&head_, it->second); in Get()
97 Insert(&head_, it->second); in Set()
110 Insert(&head_, node); in Set()
187 auto *node = head_.prev_; in PopBack()
221 Node head_; member in OHOS::LRUBucket
/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/src/EGL/
H A Degl_blob_cache.cpp60 head_ = std::make_shared<Blob>(nullptr, 0); in BlobCache()
62 head_->next_ = tail_; in BlobCache()
63 tail_->prev_ = head_; in BlobCache()
135 head_->next_->prev_ = cur; in MoveToFront()
136 cur->next_ = head_->next_; in MoveToFront()
137 head_->next_ = cur; in MoveToFront()
138 cur->prev_ = head_; in MoveToFront()
H A Degl_blob_cache.h143 std::shared_ptr<Blob> head_; member in OHOS::BlobCache
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/source/primary/
H A Daudio_capturer_source.cpp352 uint64_t tail = (head_ + size_) % sizeMax_; in Poll()
354 if (tail > head_) { in Poll()
355 MemcpysAndCheck(frame, replyBytes, buffer_.get() + head_, replyBytes); in Poll()
358 head_ = (head_ + replyBytes) % sizeMax_; in Poll()
360 uint64_t copySize = min((sizeMax_ - head_), replyBytes); in Poll()
362 MemcpysAndCheck(frame, replyBytes, buffer_.get() + head_, copySize); in Poll()
365 head_ = (head_ + copySize) % sizeMax_; in Poll()
373 head_ in Poll()
388 uint64_t head_ = 0; global() member in OHOS::AudioStandard::AudioCapturerSourceWakeup::WakeupBuffer
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Dlayout_manager.h107 head_ = head; in ResetLayoutRange()
281 double head_ = 0.0; member in OHOS::Ace::LayoutManager
H A Dlist_layout_manager.cpp339 ResetLayoutRange(head_, tail_, renderList_.MakeValue<Offset>(-offset, 0.0), viewPort_); in AdjustLayoutParam()
342 ResetLayoutRange(head_, tail_, renderList_.MakeValue<Offset>(-maxOffset, 0.0), viewPort_); in AdjustLayoutParam()
409 int32_t itemIndex = GetIndexByPosition(head_ - chainOffset_); in PerformLayout()
H A Dlist_watch_layout_manager.cpp40 int32_t itemIndex = GetIndexByPosition(head_); in PerformLayout()
H A Dgrid_layout_manager.cpp279 int32_t itemIndex = GetIndexByPosition(head_); in PerformLayout()

Completed in 19 milliseconds