libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] Sharing per-thread resources between connections


From: Christian Grothoff
Subject: Re: [libmicrohttpd] Sharing per-thread resources between connections
Date: Fri, 05 Sep 2014 12:30:10 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.6.0

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

[Prev in Thread] Current Thread [Next in Thread]