Files
allwpilib/networktables/cpp/include/networktables2/thread/PeriodicRunnable.h
Brad Miller 69d9ad70ab CMake Changes
This is the changes made by Patrick Plenefisch converting the native
code to use CMake and the CMake Maven Plugin, as opposed to the
native Maven plugin. This is to allow for compatibility with newer
versions of the GCC toolchain. All the cpp sources were moved from
maven style directories to cpp style directories for CMake.

Change-Id: I67f5e3608948f37c83b0990d232105a3784f8593
2014-04-01 11:18:29 -04:00

32 lines
610 B
C++

/*
* PeriodicRunnable.h
*
* Created on: Sep 21, 2012
* Author: Mitchell Wills
*/
#ifndef PERIODICRUNNABLE_H_
#define PERIODICRUNNABLE_H_
/**
* A runnable where the run method will be called periodically
*
* @author Mitchell
*
*/
class PeriodicRunnable
{
public:
virtual ~PeriodicRunnable()
{
}
/**
* the method that will be called periodically on a thread
*
* @throws InterruptedException thrown when the thread is supposed to be interrupted and stop (implementers should always let this exception fall through)
*/
virtual void run() = 0;
};
#endif /* PERIODICRUNNABLE_H_ */