added Thread::getId and Thread::getCurrentId