Monday, May 17, 2010

__thread inside struct

忽然想到
如果__thread可以放到struct裡不就很刺激

小試了一下

26 struct test_t {
 27     int a;
 28     __thread int b;
 29 };

當然是會有compile error ......

No comments: