Skip to content

Commit

Permalink
ThreadName is now optional
Browse files Browse the repository at this point in the history
defining USE_THREAD_NAMES makes ThreadName available for use
  • Loading branch information
Ivan Seidel committed Sep 8, 2013
1 parent b3f57b6 commit 1fb069e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit 1fb069e

Please sign in to comment.