我一直在研究 Cell 处理器,我正在尝试创建一个包含 的结构,该结构将spe_context_ptr_t
在线程中用于启动 spe 上下文,并且还将保存指向将传递给其他内容的指针来自线程内的 spu 上下文(目前我试图将其设为通用指针,但实际上它将是指向我已定义的另一个结构的指针)。当我尝试编译时,出现以下错误:
spu/../common.h:38: error: expected specifier-qualifier-list before 'spe_context_ptr_t'
// here is the offending line(s)
typedef struct _PTHREAD_BLOCK {
spe_context_ptr_t * context; // Error happens here
uintptr32_t args;
} PTHREAD_BLOCK;