LRT14  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 
13 {
14 public:
15  SynchronizedProcess(const char* taskName, INT32 priority=Task::kDefaultPriority);
16  SynchronizedProcess(const char* taskName, SEM_ID syncSem, INT32 priority=Task::kDefaultPriority);
17  virtual ~SynchronizedProcess();
18 
22  void RunOneCycle();
23 
27  virtual void preTick();
28 private:
29  SEM_ID m_syncSem;
30 };
31 
32 #endif