Yes, checking for NULL-ness is IMO a very common and perfectly
acceptable way to see if a thread-local variable has already been
initialized.

Happy hacking!

Christian

On 08/19/14 06:45, Carlos Eduardo Moreira dos Santos wrote:
> I could only find pthread_get/setspecific (and NULL value checking) as a
> solution for thread-local variable initialization. Please, let me know
> if I am going into the right direction.

Reply via email to