/*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <folly/fibers/FiberManagerInternal.h>
#include <folly/fibers/LoopController.h>
-#include <folly/io/async/EventBase.h>
+#include <folly/io/async/VirtualEventBase.h>
#include <atomic>
#include <memory>
-namespace folly {
-class EventBase;
-}
-
namespace folly {
namespace fibers {
/**
* Attach EventBase after LoopController was created.
*/
- void attachEventBase(folly::EventBase& eventBase);
+ void attachEventBase(EventBase& eventBase);
+ void attachEventBase(VirtualEventBase& eventBase);
- folly::EventBase* getEventBase() {
+ VirtualEventBase* getEventBase() {
return eventBase_;
}
};
bool awaitingScheduling_{false};
- folly::EventBase* eventBase_{nullptr};
- folly::EventBase::LoopKeepAlive eventBaseKeepAlive_;
+ VirtualEventBase* eventBase_{nullptr};
+ Executor::KeepAlive eventBaseKeepAlive_;
ControllerCallback callback_;
DestructionCallback destructionCallback_;
FiberManager* fm_{nullptr};
friend class FiberManager;
};
+
}
} // folly::fibers