Pthread多线程举例。
#include <pthread.h>
void* newThreadFunction(void* arg){
// Do things..
}
pthread_t newThread;
int ret = pthread_create(&newThread, NULL, newThreadFunction, NULL);
if(0 != ret)
cout << "pthread_create error:error_code=" << ret << endl;