A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
graphlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
.
[graphlib.git]
/
test
/
hello.cpp
diff --git
a/test/hello.cpp
b/test/hello.cpp
index
a388e00
..
d18128a
100644
(file)
--- a/
test/hello.cpp
+++ b/
test/hello.cpp
@@
-24,12
+24,24
@@
#include <DrawingArea.h>
#include <MainDrawingThread.h>
#include <DrawingArea.h>
#include <MainDrawingThread.h>
-int main_thread(int, char **)
+#include <iostream>
+
+int main_drawing_thread(int argc, char **argv)
{
// >>> insert main drawing code here <<<
{
// >>> insert main drawing code here <<<
+ std::cout << "[" << argc << "]\n";
+ for (int i = 0; i < argc; i++)
+ std::cout << " <" << argv[i] << ">\n";
+ while (true) {
+ sleep(1);
+ std::cout << '.' << std::flush;
+ }
+
return 0;
}
return 0;
}
+MAIN_DRAWING_THREAD(main_drawing_thread);
+
//============================================================
//**********************************************************************
//============================================================
//**********************************************************************