(3)如果需要取出所存储的值,调用pthread_getspecific() 该函数的参数为前面提到的pthread_key_t变量,该函数返回void*类型的值。 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 2.pthread_getspecific和pthread_setspecific使用eg1 #include<stdio.h> #include<pthread.h> #include<...