TDME2  1.9.200
ServerWorkerThread.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stdint.h>
4 
5 #include <tdme/tdme.h>
9 
12 
13 namespace tdme {
14 namespace network {
15 namespace udpserver {
16 
17 class ServerWorkerThreadPool;
18 
19 /**
20  * @brief Server worker thread
21  * @author Andreas Drewke
22  */
23 class ServerWorkerThread final: public Thread {
24 public:
25  // forbid class copy
27 
28  /**
29  * @brief Public constructor
30  * @param id id
31  * @param threadPool thread pool
32  * @param startUpBarrier start up barrier
33  */
35 
36  /**
37  * @brief Public destructor
38  */
39  virtual ~ServerWorkerThread();
40 
41 private:
42  unsigned int id;
45 
46  /**
47  * @brief Thread run method
48  */
49  void run();
50 
51 };
52 
53 };
54 };
55 };
Simple server worker thread pool class.
ServerWorkerThread(const unsigned int id, ServerWorkerThreadPool *threadPool, Barrier *startUpBarrier)
Public constructor.
Barrier implementation.
Definition: Barrier.h:21
Base class for threads.
Definition: Thread.h:20
Definition: fwd-tdme.h:4
#define FORBID_CLASS_COPY(CLASS)
Definition: tdme.h:6