Fawkes API  Fawkes Development Version
test_thread.h
1 /***************************************************************************
2  * test_thread.h - Thread to test SyncPoints
3  *
4  * Created: Thu Mar 05 15:15:42 2015
5  * Copyright 2015 Till Hofmann
6  ****************************************************************************/
7 
8 /* This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU Library General Public License for more details.
17  *
18  * Read the full text in the LICENSE.GPL file in the doc directory.
19  */
20 
21 #ifndef _PLUGINS_SYNCPOINT_TEST_THREAD_H_
22 #define _PLUGINS_SYNCPOINT_TEST_THREAD_H_
23 
24 #include <aspect/blocked_timing.h>
25 #include <aspect/logging.h>
26 #include <core/threading/thread.h>
27 
29  public fawkes::LoggingAspect,
31 {
32 public:
33  SyncPointTestThread(const char *name, BlockedTimingAspect::WakeupHook hook);
34 
35  virtual void init();
36  virtual void loop();
37  virtual void finalize();
38 
39 private:
40  BlockedTimingAspect::WakeupHook hook_;
41 };
42 
43 #endif
SyncPointTestThread::init
virtual void init()
Initialize the thread.
Definition: test_thread.cpp:46
fawkes::BlockedTimingAspect
Definition: blocked_timing.h:56
fawkes::Thread::name
const char * name() const
Definition: thread.h:100
SyncPointTestThread
Definition: test_thread.h:28
fawkes::LoggingAspect
Definition: logging.h:38
SyncPointTestThread::SyncPointTestThread
SyncPointTestThread(const char *name, BlockedTimingAspect::WakeupHook hook)
Constructor.
Definition: test_thread.cpp:40
SyncPointTestThread::loop
virtual void loop()
Code to execute in the thread.
Definition: test_thread.cpp:56
fawkes::Thread
Definition: thread.h:45
SyncPointTestThread::finalize
virtual void finalize()
Finalize the thread.
Definition: test_thread.cpp:51