返回信息流不知道是不是要在这提问 反正我是用c++写的
pthread_t thread_handle;
printf("debug11 %d\n",returnValue);
returnValue =pthread_create(&thread_handle, NULL,debug, NULL);
printf("debug11 %d\n",returnValue);
之前和之后那个打印是为了看returnvalue的 返回值为0 说明确实创建成功了
可是为什么进不去debug函数呢。。。
这是一条镜像帖。来源:北邮人论坛 / cpp / #37310同步于 2010/3/31
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖
唔 创建一个线程
IamWhoIam
2010/3/31镜像同步9 回复
订阅后,新回复会通过你的通知中心匿名送达。
9 条回复
如果在这个位置直接调用debug函数就可以进去。。。
【 在 IamWhoIam (坏掉的蝌蚪|蝌蚪刷天下|路过团幕后操纵者) 的大作中提到: 】
: 不知道是不是要在这提问 反正我是用c++写的
: pthread_t thread_handle;
: printf("debug11 %d\n",returnValue);
: ...................
returnValue =pthread_create(&thread_handle, NULL,&debug, NULL);
这样试试
【 在 IamWhoIam (坏掉的蝌蚪|蝌蚪刷天下|路过团幕后操纵者) 的大作中提到: 】
: 不知道是不是要在这提问 反正我是用c++写的
: pthread_t thread_handle;
: printf("debug11 %d\n",returnValue);
: ...................
debug 本来就是void*类型的 在q上不
【 在 DarkIce ( ) 的大作中提到: 】
: returnValue =pthread_create(&thread_handle, NULL,&debug, NULL);
: 这样试试
唔 真棒哦。。。就是这个问题
【 在 ensonlittle (Enson) 的大作中提到: 】
: 你有pthread_join()么。。。否则main退出了,线程就挂掉了