#include <app_manager.h>
Public Member Functions | |
void | addApp (AppInstance *app) |
AppInstance * | getAppInstance (const std::string &app_name) |
int | getAppNum () |
void | removeApp (const std::string &app_name) |
Worker (int id) | |
~Worker () | |
Private Member Functions | |
void | workFunc () |
Private Attributes | |
std::vector< AppInstance * > | apps_ |
int | id_ |
volatile bool | run_ |
boost::thread * | thread_ |
Definition at line 53 of file app_manager.h.
micros_swarm::Worker::Worker | ( | int | id | ) |
Definition at line 27 of file app_manager.cpp.
micros_swarm::Worker::~Worker | ( | ) |
Definition at line 35 of file app_manager.cpp.
void micros_swarm::Worker::addApp | ( | AppInstance * | app | ) |
Definition at line 48 of file app_manager.cpp.
AppInstance * micros_swarm::Worker::getAppInstance | ( | const std::string & | app_name | ) |
Definition at line 73 of file app_manager.cpp.
int micros_swarm::Worker::getAppNum | ( | ) |
Definition at line 68 of file app_manager.cpp.
void micros_swarm::Worker::removeApp | ( | const std::string & | app_name | ) |
Definition at line 53 of file app_manager.cpp.
|
private |
Definition at line 86 of file app_manager.cpp.
|
private |
Definition at line 66 of file app_manager.h.
|
private |
Definition at line 63 of file app_manager.h.
|
private |
Definition at line 64 of file app_manager.h.
|
private |
Definition at line 65 of file app_manager.h.