MCPcopy Create free account
hub / github.com/Kitware/VTK / PushBack

Method PushBack

Web/Core/vtkDataEncoder.cxx:160–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158 bool IsValid() const { return !this->ThreadPool.empty(); }
159
160 void PushBack(vtkWork&& work)
161 {
162 if (!this->IsValid())
163 {
164 vtkLogF(ERROR, "Queue is invalid! Can't push work!");
165 return;
166 }
167
168 auto key = work.Key;
169 work.TimeStamp = ++this->LastTimeStamp[key];
170 {
171 std::unique_lock<std::mutex> lock(this->QueueMutex);
172 this->Queue.emplace(std::move(work));
173 }
174 this->QueueCondition.notify_one();
175 }
176
177 bool GetResult(vtkTypeUInt32 key, vtkSmartPointer<vtkUnsignedCharArray>& data) const
178 {

Callers 4

PushMethod · 0.45
CreateDataSourceMethod · 0.45
CreateFieldsMethod · 0.45
CreateValueArrayFunction · 0.45

Calls 2

IsValidMethod · 0.95
emplaceMethod · 0.45

Tested by

no test coverage detected