Add Workers class.
This commit is contained in:
parent
29aa466023
commit
f9c244f0aa
10 changed files with 138 additions and 42 deletions
|
@ -25,10 +25,6 @@
|
|||
#define __APP_H__
|
||||
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
||||
class Handle;
|
||||
class Network;
|
||||
class Options;
|
||||
|
||||
|
@ -42,13 +38,8 @@ public:
|
|||
int exec();
|
||||
|
||||
private:
|
||||
void startWorders();
|
||||
|
||||
static void* onWorkerStarted(void *arg);
|
||||
|
||||
Network *m_network;
|
||||
Options *m_options;
|
||||
std::vector<Handle*> m_workers;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue