Separated the public interfaces of the threading primitives.