Как это. < /p>
struct some_struct
{
// Other fields
.....
__thread int tl;
}
< /code>
Я пытаюсь это сделать, но компилятор дает мне эту ошибку. < /p>
./cv.h:16:2: error: '__thread' is only allowed on variable declarations
__thread int tl;
Подробнее здесь: https://stackoverflow.com/questions/109 ... -structure
Мобильная версия