Commit 7aff2d80 authored by Brian Watling's avatar Brian Watling Committed by Sara Golemon

Allow access to a FiberManager's currently running fiber

Summary: Allow access to a FiberManager's currently running fiber

Reviewed By: @alikhtarov, @andriigrynenko

Differential Revision: D2257201
parent 1470961d
......@@ -224,6 +224,13 @@ class FiberManager : public ::folly::Executor {
*/
bool hasActiveFiber() const;
/**
* @return The currently running fiber or null if no fiber is executing.
*/
Fiber* currentFiber() const {
return currentFiber_;
}
/**
* @return What was the most observed fiber stack usage (in bytes).
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment