MythTV
master
libs
libmythbase
http
mythhttpthreadpool.h
Go to the documentation of this file.
1
#ifndef MYTHHTTPTHREADPOOL_H
2
#define MYTHHTTPTHREADPOOL_H
3
4
// MythTV
5
#include "
libmythbase/serverpool.h
"
6
7
class
MythHTTPThread
;
8
9
class
MythHTTPThreadPool
:
public
ServerPool
10
{
11
Q_OBJECT
12
13
public
:
14
MythHTTPThreadPool
();
15
~MythHTTPThreadPool
()
override
;
16
17
size_t
AvailableThreads
()
const
;
18
size_t
MaxThreads
()
const
;
19
size_t
ThreadCount
()
const
;
20
void
AddThread
(
MythHTTPThread
* Thread);
21
22
public
slots:
23
void
ThreadFinished
();
24
void
ThreadUpgraded
(QThread* Thread);
25
26
private
:
27
Q_DISABLE_COPY(
MythHTTPThreadPool
)
28
size_t
m_maxThreads
{ 4 };
29
std::list<MythHTTPThread*>
m_threads
;
30
std::list<MythHTTPThread*>
m_upgradedThreads
;
31
};
32
33
#endif
MythHTTPThreadPool::m_upgradedThreads
std::list< MythHTTPThread * > m_upgradedThreads
Definition:
mythhttpthreadpool.h:30
ServerPool
Manages a collection of sockets listening on different ports.
Definition:
serverpool.h:59
MythHTTPThreadPool::m_maxThreads
size_t m_maxThreads
Definition:
mythhttpthreadpool.h:28
MythHTTPThreadPool::AvailableThreads
size_t AvailableThreads() const
Definition:
mythhttpthreadpool.cpp:29
MythHTTPThreadPool::ThreadUpgraded
void ThreadUpgraded(QThread *Thread)
Definition:
mythhttpthreadpool.cpp:74
MythHTTPThreadPool::MaxThreads
size_t MaxThreads() const
Definition:
mythhttpthreadpool.cpp:36
MythHTTPThread
Definition:
mythhttpthread.h:12
MythHTTPThreadPool::ThreadFinished
void ThreadFinished()
Definition:
mythhttpthreadpool.cpp:52
MythHTTPThreadPool::ThreadCount
size_t ThreadCount() const
Definition:
mythhttpthreadpool.cpp:41
MythHTTPThreadPool::MythHTTPThreadPool
MythHTTPThreadPool()
Definition:
mythhttpthreadpool.cpp:8
serverpool.h
MythHTTPThreadPool::m_threads
std::list< MythHTTPThread * > m_threads
Definition:
mythhttpthreadpool.h:29
MythHTTPThreadPool::AddThread
void AddThread(MythHTTPThread *Thread)
Definition:
mythhttpthreadpool.cpp:46
MythHTTPThreadPool::~MythHTTPThreadPool
~MythHTTPThreadPool() override
Definition:
mythhttpthreadpool.cpp:19
MythHTTPThreadPool
Definition:
mythhttpthreadpool.h:9
Generated on Tue Apr 16 2024 03:18:46 for MythTV by
1.8.17