Update thread.h

add excluded global vars