* Updated Thread::stop() to check a return value of pthread_cancel().