#define MAX_THREADS ( 17 )
struct thread_info
{
unsigned int * thread_sp; /* Storage space for thread stack-pointer. */
int thread_id; /* Storage space for a thread ID. */
};
struct thread_info thread_info_array[ MAX_THREADS ];
我不明白第二个结构,你能解释一下它的作用吗?如果我们改变常量,常量如何改变结构?
更新
我认为它与以下内容相同:
struct thread_info { unsigned int *thread_sp; int thread_id; } thread_info_array[MAX_THREADS];