mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
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
37 lines
732 B
C++
37 lines
732 B
C++
/*
|
|
* NTThreadManager.h
|
|
*
|
|
* Created on: Sep 21, 2012
|
|
* Author: Mitchell Wills
|
|
*/
|
|
|
|
#ifndef NTTHREADMANAGER_H_
|
|
#define NTTHREADMANAGER_H_
|
|
|
|
class NTThreadManager;
|
|
|
|
#include "networktables2/thread/NTThread.h"
|
|
#include "networktables2/thread/PeriodicRunnable.h"
|
|
|
|
/**
|
|
* A thread manager that can be used to obtain new threads
|
|
*
|
|
* @author Mitchell
|
|
*
|
|
*/
|
|
class NTThreadManager
|
|
{
|
|
public:
|
|
virtual ~NTThreadManager()
|
|
{
|
|
}
|
|
/**
|
|
* @param r
|
|
* @param name the name of the thread
|
|
* @return a thread that will run the provided runnable repeatedly with the assumption that the runnable will block
|
|
*/
|
|
virtual NTThread* newBlockingPeriodicThread(PeriodicRunnable* r, const char* name) = 0;
|
|
};
|
|
|
|
#endif /* NTTHREADMANAGER_H_ */
|