Public Member Functions | Private Member Functions | Private Attributes | List of all members
micros_swarm::Worker Struct Reference

#include <app_manager.h>

Public Member Functions

void addApp (AppInstance *app)
 
AppInstancegetAppInstance (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_
 

Detailed Description

Definition at line 53 of file app_manager.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

void micros_swarm::Worker::workFunc ( )
private

Definition at line 86 of file app_manager.cpp.

Member Data Documentation

std::vector<AppInstance*> micros_swarm::Worker::apps_
private

Definition at line 66 of file app_manager.h.

int micros_swarm::Worker::id_
private

Definition at line 63 of file app_manager.h.

volatile bool micros_swarm::Worker::run_
private

Definition at line 64 of file app_manager.h.

boost::thread* micros_swarm::Worker::thread_
private

Definition at line 65 of file app_manager.h.


The documentation for this struct was generated from the following files:


micros_swarm
Author(s):
autogenerated on Mon Jun 10 2019 14:02:06