struct thread in server/thread.h