MythTV master
mythhttpthreadpool.h
Go to the documentation of this file.
1#ifndef MYTHHTTPTHREADPOOL_H
2#define MYTHHTTPTHREADPOOL_H
3
4// MythTV
6
8
10{
11 Q_OBJECT
12
13 public:
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
void ThreadUpgraded(QThread *Thread)
std::list< MythHTTPThread * > m_upgradedThreads
size_t MaxThreads() const
size_t ThreadCount() const
size_t AvailableThreads() const
std::list< MythHTTPThread * > m_threads
void AddThread(MythHTTPThread *Thread)
Manages a collection of sockets listening on different ports.
Definition: serverpool.h:60