请问一下:exception caught in Thread reason: call to empty boost::function Aborted (core dumped) #655
sychen12345
started this conversation in
General
Replies: 2 comments
-
刘德聪,已经收到你的邮件,请你放心
祝你生活愉快,笑口常开
|
Beta Was this translation helpful? Give feedback.
0 replies
-
When filing an issue of muduo, please provide a SSCCE: 特别是,你修改了 muduo,又不提供修改后的代码, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Thread_test.cc
我因为一些业务原因,需要在Thread.cc里面新增pthread_detach()函数,用于取代join(),但是他直接提示我为空,请问陈硕大佬,这是为什么呀
class test
{
private:
public:
void foo()
{
while (1)
{
}
}
void start()
{
muduo::Thread t1(std::bind(&test::foo, this));
t1.start();
t1.deteach();
}
test() {}
~test() {}
};
int main()
{
test t;
t.start();
while (1)
{
/* code */
}
}
Beta Was this translation helpful? Give feedback.
All reactions