Various extensions to the base thread stdlib.