#include <folly/io/async/EventBase.h>
#include <folly/io/async/VirtualEventBase.h>
+#include <folly/Memory.h>
#include <folly/ThreadName.h>
#include <folly/io/async/NotificationQueue.h>
#include <folly/portability/Unistd.h>
VirtualEventBase& EventBase::getVirtualEventBase() {
folly::call_once(virtualEventBaseInitFlag_, [&] {
- virtualEventBase_ = std::make_unique<VirtualEventBase>(*this);
+ virtualEventBase_ = folly::make_unique<VirtualEventBase>(*this);
});
return *virtualEventBase_;
size_t done{0};
for (size_t i = 0; i < kNumThreads; ++i) {
- batons.emplace_back(std::make_unique<Baton<>>());
+ batons.emplace_back(folly::make_unique<Baton<>>());
}
for (size_t i = 0; i < kNumThreads; ++i) {