diff options
author | David Robillard <d@drobilla.net> | 2007-06-24 17:04:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-06-24 17:04:07 +0000 |
commit | cb6c4950c1f4370c7de7aee8dbc0a85ce86f8705 (patch) | |
tree | 77e651f29361404b247598b1edc5ff943f8b8a01 /raul/Thread.h | |
parent | e899766e450b73860ba4d80ad8b3ff1ff532148c (diff) | |
download | raul-cb6c4950c1f4370c7de7aee8dbc0a85ce86f8705.tar.gz raul-cb6c4950c1f4370c7de7aee8dbc0a85ce86f8705.tar.bz2 raul-cb6c4950c1f4370c7de7aee8dbc0a85ce86f8705.zip |
Print message on thread exit.
git-svn-id: http://svn.drobilla.net/lad/raul@542 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul/Thread.h')
-rw-r--r-- | raul/Thread.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/raul/Thread.h b/raul/Thread.h index 56497d6..e979094 100644 --- a/raul/Thread.h +++ b/raul/Thread.h @@ -38,7 +38,9 @@ namespace Raul { class Thread : boost::noncopyable { public: - virtual ~Thread() { stop(); } + virtual ~Thread() { + stop(); + } static Thread* create(const std::string& name="") { return new Thread(name); } @@ -77,6 +79,7 @@ public: pthread_cancel(_pthread); pthread_join(_pthread, NULL); _pthread_exists = false; + std::cout << "[" << _name << " Thread] Exiting." << std::endl; } } |