uses expected types on pthread_create in logging