proxygen
wangle::FilePoller::ThreadProtector Class Reference

Public Member Functions

 ThreadProtector ()
 
 ~ThreadProtector ()
 

Static Public Member Functions

static bool inPollerThread ()
 

Static Public Attributes

static folly::ThreadLocal< bool > polling_
 

Detailed Description

Definition at line 156 of file FilePoller.h.

Constructor & Destructor Documentation

wangle::FilePoller::ThreadProtector::ThreadProtector ( )
inline

Definition at line 158 of file FilePoller.h.

158  {
159  *polling_ = true;
160  }
static folly::ThreadLocal< bool > polling_
Definition: FilePoller.h:167
wangle::FilePoller::ThreadProtector::~ThreadProtector ( )
inline

Definition at line 161 of file FilePoller.h.

161  {
162  *polling_ = false;
163  }
static folly::ThreadLocal< bool > polling_
Definition: FilePoller.h:167

Member Function Documentation

static bool wangle::FilePoller::ThreadProtector::inPollerThread ( )
inlinestatic

Definition at line 164 of file FilePoller.h.

164  {
165  return *polling_;
166  }
static folly::ThreadLocal< bool > polling_
Definition: FilePoller.h:167

Member Data Documentation

folly::ThreadLocal< bool > wangle::FilePoller::ThreadProtector::polling_
static

Definition at line 167 of file FilePoller.h.


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