-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
32 lines (24 loc) · 987 Bytes
/
main.cpp
File metadata and controls
32 lines (24 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*****************************************************************//**
* \file main.cpp
* \brief: Application the serialize temperature
* value from a "virtual" temperature sensor and
* send the values to the temperature controller class
* to stimulate the relevant PID controller
* \author F.Morani
* \date May 2023
***********************************************************************/
#include "isolatedBox_dataentryqueue.h"
using namespace std;
int main()
{
cout << "Hello Isolated Box CMake. Main Test Running" << endl;
MonitoringDataQueue g_DataQueue;
ISO_DataEntryQueue g_dataEntryQueue(&g_DataQueue);
ISO_DataEntryQueue::setStopConsumerFlag(true);
ISO_DataEntryQueue::setStopProducerFlag(true);
std::thread l_consumer_t(&ISO_DataEntryQueue::thread_consumer, &g_dataEntryQueue);
std::thread l_producer_t(&ISO_DataEntryQueue::thread_producer, &g_dataEntryQueue);
l_producer_t.join();
l_consumer_t.join();
return 0;
}