MADARA  3.1.8
TimedEventThread.h
Go to the documentation of this file.
1 
2 #ifndef _MADARA_TIMED_EVENT_THREAD_H_
3 #define _MADARA_TIMED_EVENT_THREAD_H_
4 
13 #include <string>
14 
19 
20 #include "ace/Task.h"
21 #include "ace/Atomic_Op_T.h"
22 #include "ace/Thread_Mutex.h"
23 
24 #include "ace/Synch.h"
25 
26 namespace madara
27 {
28  namespace knowledge
29  {
34  class TimedEventThread : public ACE_Task<ACE_NULL_SYNCH>
35  {
36  public:
41 
46 
50  int svc (void);
51 
52  private:
57 
58 #ifndef _MADARA_NO_KARL_
59 
63 
68 #endif // _MADARA_NO_KARL_
69 
70  };
71  }
72 }
73 
74 #endif // _MADARA_TIMED_EVENT_THREAD_H_
TimedEventThread(TimedEventThreadInfo &info)
Constructor.
Compiled, optimized KaRL logic.
Thread executing timed events.
A struct that is passed to Timed Event Thread Executors to control job handling, shutdowns, etc.
CompiledExpression queued_or_terminated_
expression for checking if events are queued or terminated
CompiledExpression thread_closed_
expression for letting control plane know the thread is closed
TimedEventThreadInfo info_
info for service loop
Provides functions and classes for the distributed knowledge base.
Copyright (c) 2015 Carnegie Mellon University.
int svc(void)
Service loop for the thread.