diff options
author | David Robillard <d@drobilla.net> | 2012-08-15 21:58:45 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-15 21:58:45 +0000 |
commit | 7f5e8664ea8e5e2ee580c093aa61b4451b2578a5 (patch) | |
tree | ba4e37a4bc8e36f4d65f30a96f71dcb7390935d5 /src/Thread.cpp | |
parent | c97fc5c70a350e951430ee07e0eb5de8b2765f8b (diff) | |
download | raul-7f5e8664ea8e5e2ee580c093aa61b4451b2578a5.tar.gz raul-7f5e8664ea8e5e2ee580c093aa61b4451b2578a5.tar.bz2 raul-7f5e8664ea8e5e2ee580c093aa61b4451b2578a5.zip |
Remove unused Raul::Thread::get().
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@4706 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Thread.cpp')
-rw-r--r-- | src/Thread.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/Thread.cpp b/src/Thread.cpp index 5287beb..f5969d6 100644 --- a/src/Thread.cpp +++ b/src/Thread.cpp @@ -33,8 +33,6 @@ struct ThreadImpl { pthread_t pthread; }; -static ThreadVar<Thread*> self(NULL); - Thread::Thread(const std::string& name) : _impl(new ThreadImpl()) , _name(name) @@ -61,21 +59,10 @@ Thread::~Thread() delete _impl; } -Thread& -Thread::get(const std::string& name) -{ - if (!self) { - self = new Thread(pthread_self(), name); - } - - return *self; -} - void* Thread::_static_run(void* thread) { Thread* me = static_cast<Thread*>(thread); - self = me; me->_run(); me->_thread_exists = false; return NULL; |