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
31{
32public:
33 SyncPointTestThread(const char *name, BlockedTimingAspect::WakeupHook hook);
34
35 virtual void init();
36 virtual void loop();
37 virtual void finalize();
38
39private:
40 BlockedTimingAspect::WakeupHook hook_;
41};
42
43#endif
Thread to test SyncPoints.
Definition: test_thread.h:31
virtual void loop()
Code to execute in the thread.
Definition: test_thread.cpp:56
virtual void init()
Initialize the thread.
Definition: test_thread.cpp:46
SyncPointTestThread(const char *name, BlockedTimingAspect::WakeupHook hook)
Constructor.
Definition: test_thread.cpp:40
virtual void finalize()
Finalize the thread.
Definition: test_thread.cpp:51
Thread aspect to use blocked timing.
Thread aspect to log output.
Definition: logging.h:33
Thread class encapsulation of pthreads.
Definition: thread.h:46
const char * name() const
Get name of thread.
Definition: thread.h:100