ThreadPool Class Referencefinal

#include <RobotAPI/libraries/armem/server/ltm/detail/mixins/util/httplib.h>

+ Inheritance diagram for ThreadPool:

Public Member Functions

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

Friends

struct worker
 

Detailed Description

Definition at line 752 of file httplib.h.

Constructor & Destructor Documentation

◆ ThreadPool() [1/2]

ThreadPool ( size_t  n,
size_t  mqr = 0 
)
inlineexplicit

Definition at line 754 of file httplib.h.

+ Here is the call graph for this function:

◆ ThreadPool() [2/2]

ThreadPool ( const ThreadPool )
delete

◆ ~ThreadPool()

~ThreadPool ( )
overridedefault

Member Function Documentation

◆ enqueue()

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

Implements TaskQueue.

Definition at line 765 of file httplib.h.

◆ shutdown()

void shutdown ( )
inlineoverridevirtual

Implements TaskQueue.

Definition at line 778 of file httplib.h.

Friends And Related Function Documentation

◆ worker

friend struct worker
friend

Definition at line 824 of file httplib.h.


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