Updated and enhanced tinythread.