14 #ifndef __INCLUDED_SCOPIRA_AGENT_CONTEXT_H__ 15 #define __INCLUDED_SCOPIRA_AGENT_CONTEXT_H__ 19 #include <scopira/tool/export.h> 20 #include <scopira/tool/uuid.h> 21 #include <scopira/tool/binflow.h> 22 #include <scopira/agent/task.h> 23 #include <scopira/agent/agent.h> 29 class service_broadcast;
117 SCOPIRA_EXPORT
virtual ~send_msg();
124 bool dm_service_bcast;
166 SCOPIRA_EXPORT
virtual ~recv_msg();
211 SCOPIRA_EXPORT ~task_context();
318 { launch_slaves_impl(numps,
typeid(M)); }
319 SCOPIRA_EXPORT
void launch_slaves(
int numps,
const std::string &classname);
386 SCOPIRA_EXPORT
bool wait_msg(
int src = -1,
int timeout = 0);
413 SCOPIRA_EXPORT
bool has_msg(
int src = -1);
436 int get_index(
void)
const { assert(dm_myindex>=0);
return dm_myindex; }
472 SCOPIRA_EXPORT
void barrier_group(
void);
479 SCOPIRA_EXPORT
void wait_group(
void);
482 SCOPIRA_EXPORT
void launch_slaves_impl(
int numtotalps,
const std::type_info &nfo);
498 task_context(
const task_context &) { }
const scopira::tool::uuid & get_serviceid(void) const
returns the service id
Definition: context.h:71
scopira::tool::uuid launch_task(scopira::tool::uuid where=scopira::tool::uuid())
Definition: context.h:270
Definition: archiveflow.h:20
scopira::tool::uuid get_id(void) const
Definition: context.h:453
Definition: context.h:186
static agent_i * instance(void)
Definition: agent.h:184
int get_index(void) const
Definition: context.h:436
int universe_size(void)
Definition: context.h:241
virtual bool failed(void) const =0
void launch_slaves(int numps)
the core variant
Definition: context.h:317
scopira::tool::uuid get_agent_id(void)
Definition: context.h:249
int get_group_size(void) const
Definition: context.h:448
void run_task(scopira::agent::task_context &ctx, scopira::agent::agent_task_i &t)
service_broadcast(const scopira::tool::uuid &serviceid)
Definition: context.h:68
void kill_task(scopira::tool::uuid ps)
Definition: context.h:329
bool is_killed_task(void)
Definition: context.h:363
scopira::tool::uuid get_id(int idx) const
Definition: context.h:459
bool is_alive_task(scopira::tool::uuid ps)
Definition: context.h:349
scopira::tool::uuid get_source(void) const
Definition: context.h:429
bool failed(void) const
Definition: context.h:218
const scopira::basekit::narray< scopira::tool::uuid > & get_group(void) const
Definition: context.h:465
Definition: context.h:132
scopira::tool::uuid get_source(void) const
Definition: context.h:173
bool wait_task(scopira::tool::uuid ps, int msec=0)
Definition: context.h:341
scopira::tool::uuid launch_group(int numps)
the core variant
Definition: context.h:293