* changed THREAD_STATUS enum type back to int