summaryrefslogtreecommitdiff
path: root/src/thread.cc
diff options
context:
space:
mode:
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);
+}