summaryrefslogtreecommitdiffstats
path: root/tests/thread_test.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-01-06 19:39:56 +0000
committerDavid Robillard <d@drobilla.net>2007-01-06 19:39:56 +0000
commit4014067a1668d94000b059d72832482a06cf8369 (patch)
tree7617295999221d85fb5fdf6ac92f30beba4141da /tests/thread_test.cpp
parent1a2962681ff62598f6cbe9aed9c5d4c69c0020a6 (diff)
downloadraul-4014067a1668d94000b059d72832482a06cf8369.tar.gz
raul-4014067a1668d94000b059d72832482a06cf8369.tar.bz2
raul-4014067a1668d94000b059d72832482a06cf8369.zip
Added ability to get Raul Thread for current calling context.
Strong threading assertions. Flowcanvas port removal fixes. Patch port destruction. Code cleanups, bug fixes. git-svn-id: http://svn.drobilla.net/lad/raul@234 a436a847-0d15-0410-975c-d299462d15a1
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;
+}
+