Update thread.h
Merge pull request #5 from bananerbob/patch-4

Update thread.h