Updated equals in Thread.h/.cpp

Updated equals in Thread.h/.cpp