From 1fb069ee874cc1015b2960a3ebd6ccc966cae57f Mon Sep 17 00:00:00 2001 From: Ivan Seidel Date: Sun, 8 Sep 2013 01:00:30 -0300 Subject: [PATCH] ThreadName is now optional defining USE_THREAD_NAMES makes ThreadName available for use --- Thread.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Thread.cpp b/Thread.cpp index 6b96419..f02d73a 100644 --- a/Thread.cpp +++ b/Thread.cpp @@ -7,8 +7,10 @@ Thread::Thread(void (*callback)(void), long _interval){ last_run = 0; ThreadID = (int)this; - ThreadName = "Thread "; - ThreadName = ThreadName + ThreadID; + #ifdef USE_THREAD_NAMES + ThreadName = "Thread "; + ThreadName = ThreadName + ThreadID; + #endif setInterval(_interval); };