在以下程序中return p,输出与相同pthread_exit(p)。那为什么要用pthread_exit()呢?
void *foo(void *p){
*((int *)p) += 1;
pthread_exit(p);
}
int main()
{
pthread_t t;
int i=9;
int *j;
pthread_create(&t,NULL, foo, &i);
pthread_join(t,(void**)&j);
printf("%d\n",*j);
}
Run Code Online (Sandbox Code Playgroud) 当我这样做时,git status -s我得到以下输出:
M package.json
D public/ewew.js
M script.sh
M src/TaskList.js
D test.js
AD test2.js
Run Code Online (Sandbox Code Playgroud)
几行开头的空格是什么意思?(1号线、3号线、5号线)