cout<
}
return NULL;
}
int main(int argc, char* argv[])
{
printf("Starting ...\n");
ACE_thread_t threadId;
ACE_hthread_t threadHandle;
char *ch = "helloworld\n";
ACE_Thread::spawn(
(ACE_THR_FUNC)worker, //线程执行函数
(void*)ch, //执行函数参数
THR_JOINABLE | THR_NEW_LWP,
&threadId,
&threadHandle
);
ACE_Thread::join(threadHandle);
printf("Ending ...\n");
return 0;
}
阅读(628) | 评论(0) | 转发(0) |