sonicling 发表于 2012-06-21 12:20
static void * Server::recieve_thread(Server *args)
{
//... 这不就有了Server类的全部作用域
}
pthread_create(&recv_tid, NULL, (thread_proc)&Server::recive_thread, this);
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |