Home
last modified time | relevance | path

Searched refs:slots_ (Results 1 – 12 of 12) sorted by relevance

/third_party/boost/boost/fiber/detail/
Dcontext_spinlock_queue.hpp37 slot_type * slots_; member in boost::fibers::detail::context_spinlock_queue
40 slot_type * old_slots = slots_; in resize_()
41 slots_ = new slot_type[2*capacity_]; in resize_()
43 std::memcpy( slots_, old_slots + cidx_, offset * sizeof( slot_type) ); in resize_()
45 std::memcpy( slots_ + offset, old_slots, pidx_ * sizeof( slot_type) ); in resize_()
64 slots_ = new slot_type[capacity_];
68 delete [] slots_; in ~context_spinlock_queue()
84 slots_[pidx_] = c; in push()
92 c = slots_[cidx_]; in pop()
102 c = slots_[cidx_]; in steal()
/third_party/boost/libs/fiber/performance/thread/
Dbuffered_channel.hpp60 alignas(cache_alignment) slot * slots_{ nullptr }; member in buffered_channel
67 …return 0 > static_cast< std::intptr_t >( slots_[idx & (capacity_ - 1)].cycle.load( std::memory_ord… in is_full_()
72 …return 0 > static_cast< std::intptr_t >( slots_[idx & (capacity_ - 1)].cycle.load( std::memory_ord… in is_empty_()
80 s = & slots_[idx & (capacity_ - 1)]; in try_push_()
101 s = & slots_[idx & (capacity_ - 1)]; in try_value_pop_()
136 slots_ = new slot[capacity_]();
138 slots_[i].cycle.store( i, std::memory_order_relaxed);
154 delete [] slots_; in ~buffered_channel()
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Draw_hash_set.h975 SetCtrl(target.offset, H2(hash), capacity_, ctrl_, slots_,
989 slots_(absl::exchange(that.slots_, nullptr)),
1001 slots_(nullptr),
1008 std::swap(slots_, that.slots_);
1075 PolicyTraits::destroy(&alloc_ref(), slots_ + i);
1079 ResetCtrl(capacity_, ctrl_, slots_, sizeof(slot_type));
1272 slot_type* slot = slots_ + res.first;
1369 swap(slots_, that.slots_);
1428 __builtin_prefetch(static_cast<const void*>(slots_ + seq.offset()));
1447 PolicyTraits::element(slots_ + seq.offset(i)))))
[all …]
Draw_hash_set_benchmark.cc31 static auto GetSlots(const C& c) -> decltype(c.slots_) { in GetSlots()
32 return c.slots_; in GetSlots()
Draw_hash_set_test.cc47 static auto GetSlots(const C& c) -> decltype(c.slots_) { in GetSlots()
48 return c.slots_; in GetSlots()
/third_party/boost/boost/fiber/
Dbuffered_channel.hpp46 slot_type * slots_; member in boost::fibers::buffered_channel
71 slots_ = new slot_type[capacity_];
76 delete [] slots_; in ~buffered_channel()
132 slots_[pidx_] = value; in try_push()
165 slots_[pidx_] = std::move( value); in try_push()
202 slots_[pidx_] = value; in push()
241 slots_[pidx_] = std::move( value); in push()
303 slots_[pidx_] = value; in push_wait_until()
351 slots_[pidx_] = std::move( value); in push_wait_until()
385 value = std::move( slots_[cidx_]); in try_pop()
[all …]
/third_party/mindspore/mindspore/ccsrc/cxx_api/model/acl/acl_vm/
Dacl_vm.cc125 if (slots_.count(node) == 0 && node->isa<ValueNode>()) { in Ref()
149slots_.count(node) == 0 && const_parameter != nullptr && const_parameter->has_default()) { in Ref()
167 MS_LOG(DEBUG) << "End Ref node end height_: " << height_ << ", slots: " << slots_[node] in Ref()
168 << ", return: " << slots_[node] - height_; in Ref()
169 return slots_[node] - height_; in Ref()
207 if (slots_.count(node) == 0) { in AddInput()
259 const auto iter = slots_.find(inputs[i]); in AddCall()
260 if (iter != slots_.end() && iter->second >= height_) { in AddCall()
261 slots_.erase(inputs[i]); in AddCall()
/third_party/abseil-cpp/absl/container/internal/
Draw_hash_set.h873 slots_(absl::exchange(that.slots_, nullptr)),
887 slots_(nullptr),
893 std::swap(slots_, that.slots_);
960 PolicyTraits::destroy(&alloc_ref(), slots_ + i);
1155 slot_type* slot = slots_ + res.first;
1252 swap(slots_, that.slots_);
1306 __builtin_prefetch(static_cast<const void*>(slots_ + seq.offset()));
1325 PolicyTraits::element(slots_ + seq.offset(i)))))
1447 PolicyTraits::transfer(&s.alloc_ref(), s.slots_ + res.first, &slot);
1496 slots_ == nullptr) {
[all …]
Draw_hash_set_test.cc44 static auto GetSlots(const C& c) -> decltype(c.slots_) { in GetSlots()
45 return c.slots_; in GetSlots()
/third_party/mindspore/mindspore/core/utils/
Dsignal.h46 for (auto &slot : slots_) { in operator()
55 slots_.push_back(slot); in add_slot()
65 std::vector<std::shared_ptr<Slot<FuncType>>> slots_;
/third_party/mindspore/mindspore/ccsrc/vm/
Dtransform.h61 void Tie(const AnfNodePtr &n1, const AnfNodePtr &n2) { slots_[n2] = slots_[n1]; } in Tie()
75 slots_.clear(); in Reset()
106 std::unordered_map<AnfNodePtr, int64_t> slots_; variable
Dtransform.cc72 if (slots_.count(node) > 0) { in Push()
79 slots_[node] = height_; in Push()
104 if (slots_.count(node) == 0 && node->isa<ValueNode>()) { in Ref()
118 MS_LOG(DEBUG) << "End Ref node end height_: " << height_ << ", slots: " << slots_[node] in Ref()
119 << ", return: " << slots_[node] - height_; in Ref()
120 return slots_[node] - height_; in Ref()
126 if (slots_.count(node) == 0) { in AddInput()
397 const auto iter = slots_.find(inputs[i]); in AddCall()
398 if (iter != slots_.end() && iter->second >= height_) { in AddCall()
399 (void)slots_.erase(inputs[i]); in AddCall()