You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
331 B
27 lines
331 B
14 years ago
|
#ifndef WORKER_THREAD_HPP
|
||
|
#define WORKER_THREAD_HPP
|
||
|
|
||
|
#include "Thread.hpp"
|
||
|
#include "ThreadPool.hpp"
|
||
|
|
||
|
class ThreadPool;
|
||
|
|
||
|
class WorkerThread : public Thread
|
||
|
{
|
||
|
|
||
|
public:
|
||
|
|
||
|
WorkerThread( ThreadPool& tp );
|
||
|
void stop();
|
||
|
|
||
|
private:
|
||
|
|
||
|
void* run();
|
||
|
|
||
|
ThreadPool& m_tp;
|
||
|
bool m_isRunning;
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif // WORKER_THREAD_HPP
|