GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
httplib::ThreadPool Class Referencefinal

#include <httplib.h>

Inheritance diagram for httplib::ThreadPool:
Collaboration diagram for httplib::ThreadPool:

Public Member Functions

 ThreadPool (size_t n, size_t max_n=0, size_t mqr=0)
 ThreadPool (const ThreadPool &)=delete
 ~ThreadPool () override=default
bool enqueue (std::function< void()> fn) override
void shutdown () override
Public Member Functions inherited from httplib::TaskQueue
 TaskQueue ()=default
virtual ~TaskQueue ()=default
virtual void on_idle ()

Constructor & Destructor Documentation

◆ ThreadPool() [1/2]

httplib::ThreadPool::ThreadPool ( size_t n,
size_t max_n = 0,
size_t mqr = 0 )
inlineexplicit
Here is the caller graph for this function:

◆ ThreadPool() [2/2]

httplib::ThreadPool::ThreadPool ( const ThreadPool & )
delete

◆ ~ThreadPool()

httplib::ThreadPool::~ThreadPool ( )
overridedefault

Member Function Documentation

◆ enqueue()

bool httplib::ThreadPool::enqueue ( std::function< void()> fn)
inlineoverridevirtual

Implements httplib::TaskQueue.

◆ shutdown()

void httplib::ThreadPool::shutdown ( )
inlineoverridevirtual

Implements httplib::TaskQueue.


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