aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/src/thread.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/src/thread.cpp b/utils/src/thread.cpp
index 22a4398..957e9bb 100644
--- a/utils/src/thread.cpp
+++ b/utils/src/thread.cpp
@@ -23,6 +23,7 @@ Thread::Thread()
{
r = NULL;
created = false;
+ id = 0;
pthread_mutex_init(&lock, NULL);
}
@@ -31,6 +32,7 @@ Thread::Thread(RunnableInterface *r)
{
this->r = r;
created = false;
+ id = 0;
pthread_mutex_init(&lock, NULL);
}