pthread 可否用在 C++ 中?
pthread_create(&thread[0], NULL, &ServerSocket::onClientAcceptThread, &clientHandle);
|error: cannot convert ‘void (ServerSocket::*)(int)throw (SocketException)’ to ‘void* (*)(void*)’ for argument ‘3’ to ‘int pthread_create(pthread_t*, const pthread_attr_t*, void* (*)(void*), void*)’|
void ServerSocket::onClientAcceptThread(int clientHandle) throw(SocketException) {}