thread_state_name
text << "State: " << thread_state_name(threadState);
const char* thread_state_name(ThreadState state);