3 #ifndef INCL_MADARA_THREADS_RCWTHREAD_H 4 #define INCL_MADARA_THREADS_RCWTHREAD_H 17 #include <type_traits> 18 #include <initializer_list> 22 #include "madara/MADARA_export.h" 91 virtual void run (
void)
override final;
100 virtual void cleanup (
void)
override final;
102 std::unique_ptr<knowledge::rcw::Transaction>
tx_;
107 #endif // INCL_MADARA_THREADS_RCWTHREAD_H
virtual void finalize(knowledge::rcw::Transaction &)
Cleans up any thread residue (usually instances created in setup).
Manages a Read-Compute-Write cycle for registered variables.
virtual ~RCWThread()
Destructor.
Provides a quality-of-service-enabled threading library.
Abstract base class for implementing RCW threads.
Abstract base class for implementing threads.
A thread that executes BaseThread logic.
This class provides a distributed knowledge base to users.
std::unique_ptr< knowledge::rcw::Transaction > tx_
Starts threads with first class support of MADARA contexts.
Copyright (c) 2015 Carnegie Mellon University.
virtual void setup(knowledge::rcw::Transaction &)
Setup the thread for later read-compute-write loops.