[Dri-devel] Re: OpenGL and the LinuxThreads pthread_descr structure
Allen Akin
akin@pobox.com
Tue May 21 11:19:00 GMT 2002
On Mon, May 20, 2002 at 12:02:31AM -0700, Ulrich Drepper wrote:
| On Thu, 2002-05-16 at 20:08, Gareth Hughes wrote:
| > I disagree that __thread is the best you can ever get. In the best
| > case, you have an extra load and subtraction before you have the address
| > of a thread-local variable. In the worst case, you have a function call
| > in there as well.
|
| If you define your variable correctly using __thread can be as efficient
| as anything else.
Hi, Ulrich. Could you elaborate a bit on how to correctly use __thread
so that the extra instructions Gareth mentioned aren't needed?
Allen
_______________________________________________________________
Hundreds of nodes, one monster rendering program.
Now that's a super model! Visit http://clustering.foundries.sf.net/
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel
More information about the Libc-alpha
mailing list