dakele

Results 4 issues of dakele

Where is the implementation of Ingress dynamic graph calculation?

std::vector a; for(int i = 0; i < 100; i++) { rapidjson::Document doc; doc.SetObject(); doc.AddMember("0", i, doc.GetAllocator()); rapidjson::Value value; value.CopyFrom(doc, doc.GetAllocator()); a.push_back(std::move(value)); } 上述代码最终a数组中所有的rapidjson::Value都是相同的,而且都是最后一个添加到数组的Value,这是什么原因

When multiple threads call push, pop, and steal of WorkStealingQueue at the same time, some data in the queue cannot be obtained due to the maintenance of _top and _bottom