再次回过头研究了这个问题,我还是对多线程了解的太少了。 原来在posix pthread中还有pthread_once,pthread_create_key 这样神奇的函数. 以下是我的实现:.
確定! 回上一頁