Fawkes API Fawkes Development Version
syncpoint.h
1/***************************************************************************
2 * syncpoint.h - SyncPoint Aspect initializer/finalizer
3 *
4 * Created: Thu Feb 19 14:39:42 2015
5 * Copyright 2015 Till Hofmann
6 *
7 ****************************************************************************/
8
9/* This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU Library General Public License for more details.
18 *
19 * Read the full text in the LICENSE.GPL file in the doc directory.
20 */
21
22#ifndef _ASPECT_INIFINS_SYNCPOINT_H_
23#define _ASPECT_INIFINS_SYNCPOINT_H_
24
25#include <aspect/inifins/inifin.h>
26
27namespace fawkes {
28
29class SyncPointManager;
30
32{
33public:
34 SyncPointAspectIniFin(SyncPointManager *syncpoint_manager);
35
36 virtual void init(Thread *thread);
37 virtual void finalize(Thread *thread);
38
39private:
40 SyncPointManager *syncpoint_manager_;
41};
42
43} // end namespace fawkes
44
45#endif
Aspect initializer/finalizer base class.
Definition: inifin.h:34
Initializer/finalizer for the SyncPointAspect.
Definition: syncpoint.h:32
virtual void finalize(Thread *thread)
Finalize thread.
Definition: syncpoint.cpp:58
virtual void init(Thread *thread)
Initialize thread.
Definition: syncpoint.cpp:43
SyncPointAspectIniFin(SyncPointManager *syncpoint_manager)
Constructor.
Definition: syncpoint.cpp:36
This class gives access to SyncPoints.
Thread class encapsulation of pthreads.
Definition: thread.h:46
Fawkes library namespace.