you can remove the note. all the pthread stuff should be platform specific but this at least works for pthread/posix platforms.