No, this cannot be explained in unprofessional conditions. Schedulers cannot successfully program using pthreads in C ++. Requires a specialist known as a "computer programmer" :-)
pthread_once_t - , pthread_once , , , . init , , , , . , - . , , . pthread_once , , , , ( , - pthread_once, , (, , ), . ).
pthread_key_t - . . TLS, pthread_key_create . , TLS . , TLS , , , TLS, , TLS . pthread , , 0 , pthread_key_create, 1 ..