proxygen
folly::EventBaseAborter Class Reference

#include <AsyncSSLSocketTest.h>

Inheritance diagram for folly::EventBaseAborter:
folly::AsyncTimeout

Public Member Functions

 EventBaseAborter (EventBase *eventBase, uint32_t timeoutMS)
 
void timeoutExpired () noexceptoverride
 
- Public Member Functions inherited from folly::AsyncTimeout
 AsyncTimeout (TimeoutManager *timeoutManager)
 
 AsyncTimeout (EventBase *eventBase)
 
 AsyncTimeout (TimeoutManager *timeoutManager, InternalEnum internal)
 
 AsyncTimeout (EventBase *eventBase, InternalEnum internal)
 
 AsyncTimeout ()
 
virtual ~AsyncTimeout ()
 
bool scheduleTimeout (uint32_t milliseconds)
 
bool scheduleTimeout (TimeoutManager::timeout_type timeout)
 
void cancelTimeout ()
 
bool isScheduled () const
 
void attachTimeoutManager (TimeoutManager *timeoutManager, InternalEnum internal=InternalEnum::NORMAL)
 
void attachEventBase (EventBase *eventBase, InternalEnum internal=InternalEnum::NORMAL)
 
void detachTimeoutManager ()
 
void detachEventBase ()
 
const TimeoutManagergetTimeoutManager ()
 
struct event * getEvent ()
 

Private Attributes

EventBaseeventBase_
 

Additional Inherited Members

- Public Types inherited from folly::AsyncTimeout
typedef TimeoutManager::InternalEnum InternalEnum
 
- Static Public Member Functions inherited from folly::AsyncTimeout
template<typename TCallback >
static std::unique_ptr< AsyncTimeoutmake (TimeoutManager &manager, TCallback &&callback)
 
template<typename TCallback >
static std::unique_ptr< AsyncTimeoutschedule (TimeoutManager::timeout_type timeout, TimeoutManager &manager, TCallback &&callback)
 

Detailed Description

Definition at line 1443 of file AsyncSSLSocketTest.h.

Constructor & Destructor Documentation

folly::EventBaseAborter::EventBaseAborter ( EventBase eventBase,
uint32_t  timeoutMS 
)
inline

Definition at line 1445 of file AsyncSSLSocketTest.h.

1447  eventBase_(eventBase) {
1448  scheduleTimeout(timeoutMS);
1449  }
bool scheduleTimeout(uint32_t milliseconds)

Member Function Documentation

void folly::EventBaseAborter::timeoutExpired ( )
inlineoverridevirtualnoexcept

timeoutExpired() is invoked when the timeout period has expired.

Implements folly::AsyncTimeout.

Definition at line 1451 of file AsyncSSLSocketTest.h.

References FAIL.

1451  {
1452  FAIL() << "test timed out";
1454  }
#define FAIL()
Definition: gtest.h:1822
void terminateLoopSoon()
Definition: EventBase.cpp:493

Member Data Documentation

EventBase* folly::EventBaseAborter::eventBase_
private

Definition at line 1457 of file AsyncSSLSocketTest.h.


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