diff options
author | David Robillard <d@drobilla.net> | 2012-05-14 05:45:15 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-05-14 05:45:15 +0000 |
commit | ff4c3ff14e76e5b06f1b4c44f03f900e1bd4ac50 (patch) | |
tree | a66a97f7f842caa51ee6891d2f5037b6707c6784 /test/sem_test.cpp | |
parent | 79deafe642561936ebb3bbcf585f2c6f26b456d3 (diff) | |
download | raul-ff4c3ff14e76e5b06f1b4c44f03f900e1bd4ac50.tar.gz raul-ff4c3ff14e76e5b06f1b4c44f03f900e1bd4ac50.tar.bz2 raul-ff4c3ff14e76e5b06f1b4c44f03f900e1bd4ac50.zip |
Clean up Thread interface.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@4411 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'test/sem_test.cpp')
-rw-r--r-- | test/sem_test.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/sem_test.cpp b/test/sem_test.cpp index f3ed065..f8b0741 100644 --- a/test/sem_test.cpp +++ b/test/sem_test.cpp @@ -24,8 +24,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: @@ -47,9 +46,6 @@ private: int main() { - Thread& this_thread = Thread::get(); - this_thread.set_name("Main"); - Semaphore sem(0); Waiter waiter(sem); waiter.start(); |