*/
#pragma once
+#include <cstdint>
+
namespace folly { namespace fibers {
/**
/**
* Called when a task is about to start executing.
+ *
+ * @param id Unique id for the fiber which is starting.
+ */
+ virtual void starting(uintptr_t id) noexcept = 0;
+
+ /**
+ * Called when a task is ready to run.
+ *
+ * @param id Unique id for the fiber which is ready to run.
*/
- virtual void starting() noexcept = 0;
+ virtual void runnable(uintptr_t id) noexcept = 0;
/**
* Called just after a task stops executing.
+ *
+ * @param id Unique id for the fiber which is stopping.
*/
- virtual void stopped() noexcept = 0;
+ virtual void stopped(uintptr_t id) noexcept = 0;
};
}} // namespace folly::fibers