proxygen
wangle::AsyncUDPServerSocketFactory::ThreadSafeDestructor Class Reference

#include <ServerSocketFactory.h>

Public Member Functions

void operator() (folly::AsyncUDPServerSocket *socket) const
 

Detailed Description

Definition at line 127 of file ServerSocketFactory.h.

Member Function Documentation

void wangle::AsyncUDPServerSocketFactory::ThreadSafeDestructor::operator() ( folly::AsyncUDPServerSocket socket) const
inline

Definition at line 129 of file ServerSocketFactory.h.

References folly::AsyncUDPServerSocket::getEventBase(), folly::EventBase::runImmediatelyOrRunInEventBaseThreadAndWait(), and folly::netops::socket().

129  {
131  [socket]() {
132  delete socket;
133  }
134  );
135  }
bool runImmediatelyOrRunInEventBaseThreadAndWait(void(*fn)(T *), T *arg)
Definition: EventBase.h:804
NetworkSocket socket(int af, int type, int protocol)
Definition: NetOps.cpp:412
EventBase * getEventBase() const override

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