【发布时间】:2009-01-07 11:30:06
【问题描述】:
我想在 QNX 中使用 c++ 和线程创建一个并行的面向对象系统。我该怎么做?
我试过了:
pthread_t our_thread_id;
pthread_create(&our_thread_id, NULL, &functionA ,NULL);
函数 A 是指向函数的指针:
void *functionA()
{ //do something
}
但是,此函数仅适用于 C 而不是 C++。如何让它在 C++ 中工作?
【问题讨论】:
标签: c++ multithreading qnx