说来惭愧,pthread_create是要返回void*的,这里忘写return了
由于编译器没有提示,报错也没提示具体原因,所以自己想了半天才想出来
记录一下,相信会有很多人犯一样的错误,特别在编译器没错误提示的情况下,经常忘记return
//开启解码线程
pthread_create(&pidDecode, nullptr, [](void *args) -> void * {
//AudioChannel *audioChannel = static_cast (args);
//audioChannel->_decode();
}, this);
//开启解码线程
pthread_create(&pidDecode, nullptr, [](void *args) -> void * {
//AudioChannel *audioChannel = static_cast (args);
//audioChannel->_decode();
return nullptr;
}, this);