camcom 1.0.3
 
Loading...
Searching...
No Matches
httplib::ThreadPool Class Referencefinal

#include <httplib.h>

Inheritance diagram for httplib::ThreadPool:
httplib::TaskQueue

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

◆ 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: