LRT13  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
SynchronizedProcess.h
1 #ifndef SYNC_PROCESS_H_
2 #define SYNC_PROCESS_H_
3 
4 #include <WPILib.h>
5 #include <semLib.h>
6 
7 #include "AsyncProcess.h"
8 
15 {
16 public:
17  SynchronizedProcess(const char * taskName, INT32 priority=Task::kDefaultPriority);
18  SynchronizedProcess(const char * taskName, SEM_ID syncSem, INT32 priority=Task::kDefaultPriority);
19  virtual ~SynchronizedProcess();
23  void RunOneCycle();
24 //protected:
28  virtual void preTick();
29 private:
30  SEM_ID m_syncSem;
31 };
32 
33 #endif