summaryrefslogtreecommitdiff
path: root/src/thread.cc
diff options
context:
space:
mode:
authordeva <deva>2005-09-12 15:34:25 +0000
committerdeva <deva>2005-09-12 15:34:25 +0000
commit701608f39c59b530f6cede66ec24e9ddda8beae6 (patch)
treee974077734a45e0e6bb5b487b230922656834bed /src/thread.cc
parent84e9873f846478476487d5cd2587e5879a0be8ea (diff)
*** empty log message ***
Diffstat (limited to 'src/thread.cc')
-rw-r--r--src/thread.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/thread.cc b/src/thread.cc
index 23b142a..2791c53 100644
--- a/src/thread.cc
+++ b/src/thread.cc
@@ -45,3 +45,8 @@ void Thread::run()
{
pthread_create (&tid, NULL, thread_run, this);
}
+
+void Thread::wait_stop()
+{
+ pthread_join (tid, NULL);
+}