proxygen
folly::fibers::Baton::FiberWaiter Class Reference

#include <Baton-inl.h>

Inheritance diagram for folly::fibers::Baton::FiberWaiter:
folly::fibers::Baton::Waiter

Public Member Functions

void setFiber (Fiber &fiber)
 
void post () override
 
- Public Member Functions inherited from folly::fibers::Baton::Waiter
virtual ~Waiter ()
 

Private Attributes

Fiberfiber_ {nullptr}
 

Detailed Description

Definition at line 22 of file Baton-inl.h.

Member Function Documentation

void folly::fibers::Baton::FiberWaiter::post ( )
inlineoverridevirtual

Implements folly::fibers::Baton::Waiter.

Definition at line 29 of file Baton-inl.h.

References fiber_, and folly::fibers::Fiber::resume().

29  {
30  fiber_->resume();
31  }
void folly::fibers::Baton::FiberWaiter::setFiber ( Fiber fiber)
inline

Definition at line 24 of file Baton-inl.h.

References fiber_.

Referenced by folly::fibers::Baton::waitFiber().

24  {
25  DCHECK(!fiber_);
26  fiber_ = &fiber;
27  }

Member Data Documentation

Fiber* folly::fibers::Baton::FiberWaiter::fiber_ {nullptr}
private

Definition at line 34 of file Baton-inl.h.

Referenced by post(), and setFiber().


The documentation for this class was generated from the following file: