On 11/26/2009 07:24 PM, Glauber Costa wrote:
Since we'll have multiple cpu threads, at least for kvm, we need a way to store
and retrieve the CPUState associated with the current execution thread.
For the I/O thread, this will be NULL.

I am using pthread functions for that, for portability, but we could as well
use __thread keyword.


Where is __thread not supported?

It's likely a bit faster than pthread_getspecific().

--
error compiling committee.c: too many arguments to function



Reply via email to