summaryrefslogtreecommitdiff
path: root/src/examples/eina_cxx/eina_cxx_thread_01.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/eina_cxx/eina_cxx_thread_01.cc')
-rw-r--r--src/examples/eina_cxx/eina_cxx_thread_01.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/examples/eina_cxx/eina_cxx_thread_01.cc b/src/examples/eina_cxx/eina_cxx_thread_01.cc
index 64c7525..b47b1a6 100644
--- a/src/examples/eina_cxx/eina_cxx_thread_01.cc
+++ b/src/examples/eina_cxx/eina_cxx_thread_01.cc
@@ -1,6 +1,10 @@
1//Compile with: 1//Compile with:
2//gcc -g eina_list_01.c -o eina_list_01 `pkg-config --cflags --libs eina` 2//gcc -g eina_list_01.c -o eina_list_01 `pkg-config --cflags --libs eina`
3 3
4#ifdef HAVE_CONFIG_H
5# include <config.h>
6#endif
7
4#include <stdio.h> 8#include <stdio.h>
5#include <Eina.hh> 9#include <Eina.hh>
6 10
@@ -13,7 +17,6 @@ namespace eina = efl::eina;
13 17
14void thread1(eina::mutex&) 18void thread1(eina::mutex&)
15{ 19{
16
17} 20}
18 21
19int main() 22int main()
@@ -27,6 +30,6 @@ int main()
27 eina::unique_lock<eina::mutex> l(m); 30 eina::unique_lock<eina::mutex> l(m);
28 31
29 eina::thread thread1(&::thread1, eina::ref(m)); 32 eina::thread thread1(&::thread1, eina::ref(m));
30 33
31 thread1.join(); 34 thread1.join();
32} 35}