summaryrefslogtreecommitdiffstats
path: root/test/thread_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/thread_test.cpp')
-rw-r--r--test/thread_test.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/thread_test.cpp b/test/thread_test.cpp
index 738b30c..b74db72 100644
--- a/test/thread_test.cpp
+++ b/test/thread_test.cpp
@@ -23,8 +23,7 @@ using namespace Raul;
class Waiter : public Raul::Thread {
public:
- Waiter(Semaphore& sem) : _sem(sem) {
- Thread::set_name("Waiter");
+ Waiter(Semaphore& sem) : Raul::Thread("Waiter"), _sem(sem) {
}
private:
@@ -40,9 +39,6 @@ private:
int
main()
{
- Thread& this_thread = Thread::get();
- this_thread.set_name("Main");
-
Semaphore sem(0);
Waiter waiter(sem);
waiter.start();