summaryrefslogtreecommitdiffstats
path: root/tests/thread_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/thread_test.cpp')
-rw-r--r--tests/thread_test.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/thread_test.cpp b/tests/thread_test.cpp
new file mode 100644
index 0000000..7a4d875
--- /dev/null
+++ b/tests/thread_test.cpp
@@ -0,0 +1,16 @@
+#include <iostream>
+#include <raul/Thread.h>
+
+using namespace std;
+
+int
+main()
+{
+ Thread& this_thread = Thread::get();
+ this_thread.set_name("Main");
+
+ cerr << "Thread name: " << Thread::get().name() << endl;
+
+ return 0;
+}
+