Update threads.h