trantor
Non-blocking I/O cross-platform TCP network library, using C++14
Loading...
Searching...
No Matches
trantor::EventLoopThread Class Reference

This class represents an event loop thread. More...

#include <trantor/net/EventLoopThread.h>

Inheritance diagram for trantor::EventLoopThread:
Collaboration diagram for trantor::EventLoopThread:

Public Member Functions

 EventLoopThread (const std::string &threadName="EventLoopThread")
void wait ()
 Wait for the event loop to exit.
EventLoopgetLoop () const
 Get the pointer of the event loop of the thread.
void run ()
 Run the event loop of the thread. This method doesn't block the current thread.

Detailed Description

This class represents an event loop thread.

Member Function Documentation

◆ getLoop()

EventLoop * trantor::EventLoopThread::getLoop ( ) const
inline

Get the pointer of the event loop of the thread.

Returns
EventLoop*

◆ wait()

void trantor::EventLoopThread::wait ( )

Wait for the event loop to exit.

Note
This method blocks the current thread until the event loop exits.

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