/*
- * Copyright 2017 Facebook, Inc.
+ * Copyright 2014-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.
std::unique_ptr<LoopController> loopController,
Options options = Options());
- ~FiberManager();
+ ~FiberManager() override;
/**
* Controller access.
template <typename F>
RemoteTask(F&& f, const Fiber::LocalData& localData_)
: func(std::forward<F>(f)),
- localData(folly::make_unique<Fiber::LocalData>(localData_)),
+ localData(std::make_unique<Fiber::LocalData>(localData_)),
rcontext(RequestContext::saveContext()) {}
folly::Function<void()> func;
std::unique_ptr<Fiber::LocalData> localData;
void* fakeStack,
const void** saveStackBase,
size_t* saveStackSize);
+ void freeFakeStack(void* fakeStack);
void unpoisonFiberStack(const Fiber* fiber);
#endif // FOLLY_SANITIZE_ADDRESS
std::this_thread::yield();
}
}
-}
-}
+} // namespace fibers
+} // namespace folly
#include <folly/fibers/FiberManagerInternal-inl.h>