Unsafe thread functions

The following functions are not thread-safe. In a multithreaded application, therefore, they should only be used before the first invocation of pthread_create().