diff options
Diffstat (limited to 'test/thread_test.cpp')
-rw-r--r-- | test/thread_test.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/thread_test.cpp b/test/thread_test.cpp new file mode 100644 index 0000000..fd7a411 --- /dev/null +++ b/test/thread_test.cpp @@ -0,0 +1,19 @@ +#include <iostream> +#include "raul/Thread.hpp" + +using namespace std; +using namespace Raul; + +int +main() +{ + Thread& this_thread = Thread::get(); + this_thread.set_name("Main"); + + cout << "Thread name should be Main" << endl; + + cout << "Thread name: " << Thread::get().name() << endl; + + return 0; +} + |