3 #ifndef _MADARA_THREADS_WORK_UNIT_H_ 4 #define _MADARA_THREADS_WORK_UNIT_H_ 20 #include "madara/MADARA_export.h" 54 virtual void run (
void) = 0;
83 #endif // _MADARA_THREADS_WORK_UNIT_H_
WorkUnit()
Default constructor.
virtual void init(knowledge::Variables &vars)
Initializes thread with MADARA context.
Provides a quality-of-service-enabled threading library.
bool critical
Criticality.
Abstract base class for implementing base threads.
int priority
Task priority.
virtual void cleanup(void)
Cleans up any thread residue (usually instances created in init).
Copyright (c) 2015 Carnegie Mellon University.
virtual void run(void)=0
Executes the main thread logic.
Provides an interface for external functions into the MADARA KaRL variable settings.