/*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2015-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
auto& fmPtrRef = map_[&evb];
if (!fmPtrRef) {
- auto loopController = make_unique<EventBaseLoopControllerT<EventBaseT>>();
+ auto loopController = std::make_unique<EventBaseLoopController>();
loopController->attachEventBase(evb);
evb.runOnDestruction(new EventBaseOnDestructionCallback<EventBaseT>(evb));
- fmPtrRef = make_unique<FiberManager>(std::move(loopController), opts);
+ fmPtrRef =
+ std::make_unique<FiberManager>(std::move(loopController), opts);
}
return *fmPtrRef;
const FiberManager::Options& opts) {
return ThreadLocalCache<VirtualEventBase>::get(evb, opts);
}
-}
-}
+} // namespace fibers
+} // namespace folly