Fehler #666 » main.cpp
1 |
#include <stdio.h>
|
---|---|
2 |
|
3 |
#include <QString>
|
4 |
#include <QRegularExpression>
|
5 |
#include <QRegularExpressionMatch>
|
6 |
#include <QFile>
|
7 |
#include <QTimer>
|
8 |
#include <QTextStream>
|
9 |
#include <QCoreApplication>
|
10 |
|
11 |
#include "main.hpp"
|
12 |
|
13 |
int i1=0x10; |
14 |
|
15 |
T CCounters::gcounter{0}; |
16 |
bool b1=false; |
17 |
bool b2=false; |
18 |
bool b3=false; |
19 |
bool b4=false; |
20 |
|
21 |
int main(int argc, char* argv[]) |
22 |
{
|
23 |
QCoreApplication app(argc, argv); |
24 |
//main2(argc, argv);
|
25 |
__atomic_thread_fence(__ATOMIC_SEQ_CST); |
26 |
//*(int*)&i1=0x20;
|
27 |
i1++; |
28 |
__atomic_thread_fence(__ATOMIC_SEQ_CST); |
29 |
i1++; |
30 |
printf("I1: %d\n", i1); |
31 |
CCounters c1(b1), c2(b2), c3(b3), c4(b4); |
32 |
c1.start(); |
33 |
c2.start(); |
34 |
c3.start(); |
35 |
c4.start(); |
36 |
printf("Starting...\n"); |
37 |
return( app.exec() ); |
38 |
};
|
39 |
|
40 |
|