Began refactoring the entire source tree.
[aesalon.git] / include / monitor / program / ZoneReader.h
blob8518494eda075a5df6e271e7d65a5892998d4cff
1 /**
2 Aesalon, a tool to visualize a program's behaviour at run-time.
3 Copyright (C) 2010, Aesalon Development Team.
5 Aesalon is distributed under the terms of the GNU GPLv3. For more
6 licensing information, see the file LICENSE included with the distribution.
8 @file include/monitor/program/ZoneReader.h
12 #ifndef AesalonMonitor_Program_ZoneReader_H
13 #define AesalonMonitor_Program_ZoneReader_H
15 #include <pthread.h>
17 #include "module/List.h"
18 #include "SharedMemory.h"
19 #include "vcommunication/DataSink.h"
21 namespace Monitor {
22 namespace Program {
24 class ZoneReader {
25 private:
26 SharedMemory *m_sharedMemory;
27 Module::List *m_moduleList;
28 pthread_t m_threadID;
29 VCommunication::DataSink *m_dataSink;
30 public:
31 ZoneReader(SharedMemory *sharedMemory, Module::List *moduleList, VCommunication::DataSink *dataSink);
32 ~ZoneReader();
34 void start();
35 void startInThread();
37 void join();
38 private:
39 static void *run(void *voidInstance);
42 } // namespace Program
43 } // namespace Monitor
45 #endif