Add warnings to thread doc.