Goby3  3.1.5a
2024.05.23
httplib::ThreadPool Class Reference

#include <goby/util/thirdparty/cpp-httplib/httplib.h>

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

Public Member Functions

 ThreadPool (size_t n)
 
 ThreadPool (const ThreadPool &)=delete
 
 ~ThreadPool () override=default
 
void 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 ()
 

Friends

struct worker
 

Detailed Description

Definition at line 608 of file httplib.h.

Constructor & Destructor Documentation

◆ ThreadPool() [1/2]

httplib::ThreadPool::ThreadPool ( size_t  n)
inlineexplicit

Definition at line 611 of file httplib.h.

◆ ThreadPool() [2/2]

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

◆ ~ThreadPool()

httplib::ThreadPool::~ThreadPool ( )
overridedefault

Member Function Documentation

◆ enqueue()

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

Implements httplib::TaskQueue.

Definition at line 623 of file httplib.h.

◆ shutdown()

void httplib::ThreadPool::shutdown ( )
inlineoverridevirtual

Implements httplib::TaskQueue.

Definition at line 633 of file httplib.h.

Friends And Related Function Documentation

◆ worker

friend struct worker
friend

Definition at line 678 of file httplib.h.


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